Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User cristi.mota's Avatar
    Join Date
    Nov 2007
    Posts
    3
    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
    Nokia Developer Champion balagopalks's Avatar
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,427
    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 jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    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 Python
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved