Downloading images from a web server

  • Thread starter Thread starter Dino Buljubasic
  • Start date Start date
The simplest method would be to create an instance of the WebClient class
(found within System.Net) and call it’s DownloadFile() method.

With little regard for changing the URL or where the file is saved to, you
can do it as easily as this:

WebClient wc = new WebClient();
wc.DownloadFile("http://mypictures.com/pics/picture01.jpg",
"C:\\picture01.jpg");

Brendan
 
Back
Top