void DownloadFile(string downloadLocation, string destinationLocation) { WebClient myWebClient = new WebClient(); myWebClient.DownloadFile(downloadLocation, destinationLocation); }
DownloadFile("http://www.abc.com/1.jpg", @"C:\1.jpg"); //works fine DownloadFile("http://www.abc.com/2.jpg", @"C:\2.jpg"); //works fine DownloadFile("http://www.abc123.com/21.jpg", @"C:\21.jpg"); //works fine
DownloadFile("http://www.xyz.com/a.jpg", @"C:\a.jpg"); //doesn't work DownloadFile("http://www.xyz.com/abcd.jpg", @"C:\abcd.jpg"); //doesn't work
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)