Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in loading gif/jpeg Image on Emulator.

 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe, you need to set the correct CONTENT-TYPE.
 
Darryl Burke
Bartender
Posts: 5149
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What image types does MIDP support?
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic