Hi all I want my program to get number of images from the web http://www.url.com/img01.jpg . . . http://www.url.com/img99.jpg What should I use in order to read images and save it to my hard drive? URL url = new URL("http://www.url.com/img01.jpg"); InputStream is = urlConnection.getInputStream(); something like that? but it does not work and I don't know how to "convert" inputstream to file.... Please help!
Joined: Dec 06, 2001
One possiblity is to also create an OutputStream that writes to a file. You can then read the data from the InputStream you created from the URL and write it to this OutputStream.