当前位置:编程学习 > C#/ASP.NET >>

webclient图片下载问题

string url = "http://static14.photo.sina.com.cn/bmiddle/5b072a05t6880a46fc1ad";
            WebClient myWebClient = new WebClient();
            myWebClient.DownloadFile(url, "D:\\temp.jpg");
            


//http://blog.sina.com.cn/nbakobebryant 图片连接页面
//http://static14.photo.sina.com.cn/bmiddle/5b072a05t6880a46fc1ad  下载失败,异常: 远程服务器 返回错误: (403) 已禁止。???为什么失败呢???//http://portrait6.sinaimg.cn/1527196165/blog/180  下载成功
//http://i3.sinaimg.cn/ty/k/p/2008-06-06/U1614P6T12D3704241F44DT20080606094825.jpg 下载成功 --------------------编程问答-------------------- 麻烦路过的高手回答下啊
//http://blog.sina.com.cn/nbakobebryant 图片连接页面 

//http://static14.photo.sina.com.cn/bmiddle/5b072a05t6880a46fc1ad  下载失败,异常: 远程服务器 返回错误: (403) 已禁止。???为什么失败呢???

//http://portrait6.sinaimg.cn/1527196165/blog/180  下载成功 

//http://i3.sinaimg.cn/ty/k/p/2008-06-06/U1614P6T12D3704241F44DT20080606094825.jpg 下载成功


就唯独一张图片失败了,麻烦各位老大解释下
补充:.NET技术 ,  C#
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,