File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Downloading Images from server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Downloading Images from server" Watch "Downloading Images from server" New topic

Downloading Images from server

Ian Strain
Ranch Hand

Joined: Jun 30, 2004
Posts: 49
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.

"its bad luck to be superstitious....."
Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 356
I post you whole method which works on real devices.

I agree. Here's the link:
subject: Downloading Images from server
It's not a secret anymore!