×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    3

    How to get informations about an image without creating the Image Object

    Hi all,
    I have a problema with some Images in my application. When I create the Image object application blocks because the image file is to big. There is a way to find out the image resolution before creating the Image object, just reading a header or something else from image file? I saw that in standard edition can be use for that javax.imageio package, there is a corespondent or something like this in j2me?
    Thanks

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: How to get informations about an image without creating the Image Object

    Hi cristi.mota! Welcome to Nokia Developer Discussion Boards!!

    If you are using FileConnection you can use public long fileSize()
    to find out the size of a file on the file system.

    Regards
    Gopal

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: How to get informations about an image without creating the Image Object

    Hi Cristi,

    there is currently no such support in Java ME. So, if you need this, you should implement this functionality by your own (you could port standard Java libraries, if suitable).

    Pit

    Edit: check Gopal solution, since it's a good one on phones supporting FileConnection API
    Last edited by jappit; 2008-06-27 at 08:48. Reason: Gopal previous answer :)

Similar Threads

  1. convert bytes to image object
    By Alpinet in forum Symbian
    Replies: 0
    Last Post: 2008-05-04, 20:11
  2. Creating a transparent image on Series 60
    By Stengun in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2004-05-19, 13:04
  3. Creating image from downloaded file
    By roelb in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2004-03-15, 14:37
  4. a question about MMS image object
    By seekie in forum General Messaging
    Replies: 1
    Last Post: 2002-11-15, 07:10
  5. Get pixel data from an image object on Nokia phones?
    By inopia in forum Mobile Java General
    Replies: 1
    Last Post: 2002-05-15, 09:27

Posting Permissions

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