Results 1 to 3 of 3
Thread: how can i save an image from url
- 01-12-2009, 11:46 PM #1
Member
- Join Date
- Nov 2008
- Posts
- 3
- Rep Power
- 0
- 01-13-2009, 01:31 AM #2
Senior Member
- Join Date
- Nov 2008
- Posts
- 286
- Rep Power
- 5
Essentially, you:
- construct a URL with your URL
- call openConnection(), then call getInputStream() on the resulting URLConnection object
- pull out the data from the input stream as with any old input stream, probably wrapping a BufferedInputStream around it
A while ago I put up on my web site an example of reading data from a URL in Java, which covers this case of binary data, plus the case of reading character data.Neil Coffey
Javamex - Java tutorials and performance info
- 01-14-2009, 07:02 PM #3
Member
- Join Date
- Jan 2009
- Posts
- 34
- Rep Power
- 0
Similar Threads
-
how to save image as jpg?
By katie in forum New To JavaReplies: 4Last Post: 04-15-2010, 10:07 AM -
how to save image to disk after using pixelgrabber
By shishirg in forum Advanced JavaReplies: 5Last Post: 02-28-2009, 02:45 PM -
Save a jpg image on server
By yadavjpr in forum Java ServletReplies: 1Last Post: 11-21-2008, 01:49 PM


LinkBack URL
About LinkBacks

Bookmarks