• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in loading gif/jpeg Image on Emulator.

 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
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: 5162
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: 1325
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,
     
    What are you doing? You are supposed to be reading this tiny ad!
    the new thread boost feature brings a LOT of attention to your favorite threads
    https://coderanch.com/t/674455/Thread-Boost-feature
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!