c# image from url code example
Example: c# 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);
}
using (WebClient webClient = new WebClient()){
byte[] dataArr = webClient.DownloadData("url.jpg");
//save file to local
File.WriteAllBytes(@"path.png", dataArr);
}