• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

save image file from remote URL

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ALL,
I would like to know tht how to save an image file from remote URL to my local system.
for eg. http://www.xyz.com/sham.gif wants to store in my local system c:\sham.gif.
Pls give your valuable suggestion with examples how to do.
Thanks
Jowsaki
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Mr. Sham ........
Can u describe yr question because this is not understanble.
saving process in explorer is it's on process so no need to take of it.So pl tell what u want ?
kkjava
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Create a URL object.
Use URL.openConnection to get a URLConnection.
Get the InputStream from the URLConnection.
Read from the InputStream and write what you get to a file.
 
Chicken Farmer ()
Posts: 1932
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
kkjava-
I would like to once again remind you are in violation of JavaRanch's Naming Policy. Please change your display name, you can do so here.
Failure to comply with this one simple policy usually results in account lockout and you will be forced to reregister.
Thanks!
(sorry for the hijack guys).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic