You Are Here:

Community: Developer Discussion Boards

#1 Old Problem with Image.createImage() method - 2007-04-24, 10:54

Join Date: Sep 2006
Posts: 46
vishaljaiswal's Avatar
vishaljaiswal
Offline
Registered User
Hi All,

I am developing an application which need a picture attachment. For this I wrote a API which first traverses the directory and then after creating image for .JPG extension it creates thumbnail of that image.

But in this I am facing a problem. whenever I pass a large amount of data say (150 KB), The Image.createImage(byte[], offset, length) method fires an exception as Illegal argument exception, and I don't get Image.
I searched and found that MIDP has restriction of creating image 64KB. But it is for Palm OS and also for .png files.

Can any body tell me that why it is failing for JPG images.

Or any other solution to do it.


Regards,

Vishal
Reply With Quote

#2 Old Re: Problem with Image.createImage() method - 2007-04-25, 16:34

Join Date: Feb 2007
Posts: 12
hanno
Offline
Registered User
hi vishaljaiswal

I think that IllegalArgumentException is thrown when the byte[] cannot be decoded.

I think 150KB for .jpg image is very large

whats the dimensions of this picture ?
Last edited by hanno : 2007-04-25 at 22:25.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with RRtpSession::OpenL() method mitesh_thakkar Symbian Networking & Messaging 3 2008-08-21 10:43
Problem when Line.open method invoke(Incooming call event) sarveshnokia Symbian Tools & SDKs 1 2005-10-13 05:17
Problem when acces the class in Main method please help. sarveshnokia Symbian Tools & SDKs 0 2005-10-06 18:48
problem not invoke destroyApp method in 3650 phone... crony94 Mobile Java General 3 2003-06-12 07:41
7210 Silent Problem MarkMckim Mobile Java General 1 2003-03-18 13:36

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ