This short article show you how to download pictures from Internet using C#.
At first, I need to know the url for the picture. For this example I use Inspect Element from Chrome browser.
Then, I have a C# console application as below.
static void Main(string args)
WebClient client = new WebClient();
client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted);
client.DownloadFileAsync(new Uri(url), @”c:\temp\chinese-new-year-5_2807135k.jpg”);
Console.Write(“Press Enter key contine when download finished”);
static void client_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
You should see the picture in your C:\temp folder.