Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Downloading png images to mobile  RSS feed

 
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?
 
ranger
Sheriff
Posts: 17314
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!