This week's giveaway is in the Spring forum.
We're giving away four 3 month subscriptions to Marco Behler Videos and have Marco Behler on-line!
See this thread for details.
Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Downloading png images to mobile  RSS feed

 
Joel Karimpil
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the best way to download images to the mobile from the server?
can anyone give some link to sample code?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are these static images for your MIDlet, if so, just include them in the jar file. Otherwise I suggest using the HTTPConnection to get the image.

Mark
 
Joel Karimpil
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark, this is for downloading from server.
so i am using http.
but i need to show it in a particular size on the device.
i just got some code for resizing an image.
btw...
i need to know that when we can display a jpg image why do we go in for the png format.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!