Save image to file

  • Thread starter Thread starter JezB
  • Start date Start date
J

JezB

I have a reference to an image via an http url. How do I save (cache) that
image to a local file from a windows forms application ?
 
Hi Jez,

You could use the HttpWebRequest method as Robbe said, or you can use WebClient.DownloadFile.
However, with HttpWebRequest and reading the stream you could monitor/display download progress. With WebClient will have to wait till the file is downloaded.
 
Back
Top