📅  最后修改于: 2022-03-11 14:48:44.055000             🧑  作者: Mango
using (WebClient webClient = new WebClient()){
byte[] dataArr = webClient.DownloadData("url.jpg");
//save file to local
File.WriteAllBytes(@"path.png", dataArr);
}