csharp how-to-download-image-from-url

Code Example - csharp how-to-download-image-from-url

                
                        using (WebClient webClient = new WebClient()){
	byte[] dataArr = webClient.DownloadData("url.jpg");
	//save file to local
  	File.WriteAllBytes(@"path.png", dataArr);
}