Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009

    How to store .PNG image for j2me application

    i'm using adobe photoshop to create .png image files for best pixels and using netbeans 6.5 to create j2me apps..problem is the photos are failing to load yet the app is compiling without errors.where do i store the image in the netbeansproject files?is it in src, nbproject or properties folder?and do i need to declare them in the manifest/jad for them to be loaded?

  2. #2
    Registered User
    Join Date
    Mar 2008

    Re: How to store .PNG image for j2me application

    You can store the images under src folder. I'd suggest you create a subfolder for them.

    Then you can load the image in program as follows:
    Image img = Image.createImage("/subfoldername/imagename.png");
    Of course if you don't create the subfolder for them, then just use "/imagename.png" in createImage method. Oh and note that createImage throws IOException which you should handle.

    Hope that helps.

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    The Capital of INDIA

    Thumbs up Re: How to store .PNG image for j2me application

    Try as max as possible not to start the same thread,here you ask the same query,
    did you read the reply..
    Thanks with Regards,

    R a j - The K e r n e l

    Join Delhi-NCR Nokia Developer's Community,

  4. #4
    Super Contributor
    Join Date
    Sep 2008
    Noida, U.P.

    Thumbs up Re: How to store .PNG image for j2me application

    this is worst to start new thread for the same problem. Please be continue with the same as Raj suggests u..


Similar Threads

  1. Do Symbian rejects the Express Signing request on any Business Development ground?
    By arpit2agrawal in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 23
    Last Post: 2009-02-19, 10:46
  2. Open the native Image Editor Application
    By lpradeepa in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2009-02-06, 03:42
  3. Replies: 8
    Last Post: 2009-01-20, 13:47
  4. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  5. Saving Image into Record Store
    By ramadina in forum Mobile Java General
    Replies: 0
    Last Post: 2003-12-01, 07:51

Posting Permissions

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