using (WebClient wc = new WebClient())
{
同步下载
wc.DownloadFile(new Uri(picUrl), savePath);
}
savePath:下载的文件需要保存的路径
picUrl:需要下载文件的url
using (WebClient wc = new WebClient())
{
同步下载
wc.DownloadFile(new Uri(picUrl), savePath);
}
savePath:下载的文件需要保存的路径
picUrl:需要下载文件的url