This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Problem in loading gif/jpeg Image on Emulator. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Problem in loading gif/jpeg Image on Emulator." Watch "Problem in loading gif/jpeg Image on Emulator." New topic
Author

Problem in loading gif/jpeg Image on Emulator.

Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Hi,

I having a difficulty in loading gif/jpeg format image in emulator. while the same code load the png format image without any complain.



here is the output & exception when loading this url "http://www.coderanch.com/templates/default/images/on.gif".


Any help would be appreciated.
Thanks,


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

I believe, you need to set the correct CONTENT-TYPE.


S.D. MADHAN
Not many get the right opportunity !
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

What image types does MIDP support?


luck, db
There are no new questions, but there may be new answers.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Thanks for your reply Madhanand and Darryl,

@Madhan
changing the content type with image/gif is not make it work.

@Darryl
thanks for the url.

  • PNG was supported on the test platforms as it should be.
  • No other format was supported.


  • Does it mean that the code would work on real devices?

    Thanks,
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Problem in loading gif/jpeg Image on Emulator.
     
    Similar Threads
    send image in post method from J2ME to Servlet
    Networking question from Jonathan Knudsen - Beginning J2ME..
    Networking question from Jonathan Knudsen - Beginning J2ME..
    Problem using http post over j2me
    Can not connect server socket over internet