File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 4530
    
    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.