Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2006

    Problem with Image.createImage() method

    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.


  2. #2
    Registered User
    Join Date
    Feb 2007

    Re: Problem with Image.createImage() method

    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 21:25.

Similar Threads

  1. Problem with RRtpSession::OpenL() method
    By mitesh_thakkar in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2008-08-21, 09:43
  2. Problem when Line.open method invoke(Incooming call event)
    By sarveshnokia in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2005-10-13, 04:17
  3. Problem when acces the class in Main method please help.
    By sarveshnokia in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-10-06, 17:48
  4. problem not invoke destroyApp method in 3650 phone...
    By crony94 in forum Mobile Java General
    Replies: 3
    Last Post: 2003-06-12, 06:41
  5. 7210 Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-18, 12:36

Posting Permissions

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