Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Downloading Images from server

 
Ian Strain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have managed to create a MIDLet that connects to a server and downloads a picture to the phone. This works perfectly on the emulator but when I put in on any phone it wouldn't connect. I commented out most of the code and found that using
DataInputStream iStrm = connection.openDataInputStream();
made the MIDlet not connect.
 
Pavel Kubal
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I post you whole method which works on real devices.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic