📌  相关文章
📜  c# how-to-download-image-from-url - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:44.055000             🧑  作者: Mango

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