首页 新闻 会员 周边 捐助

asp.net 采集图片,如果破解防盗链?

0
[待解决问题]

asp.net 采集图片,如果破解防盗链?

 1 /// <summary>保存图片
 2         /// </summary>
 3         /// <param name="picUrl"></param>
 4         /// <returns></returns>
 5         public int SavePic(string picUrl)
 6         {
 7             System.Net.WebClient webClient = new WebClient();
 8 
 9             System.Uri uri = new Uri(picUrl);
10             int len = uri.Segments.Length;
11             webClient.BaseAddress = "http://www.imanhua.com/comic/55/list_68637.html";
12             webClient.DownloadFile(uri, "E:\\" + uri.Segments[len - 1]);
13             webClient.Dispose();
14             return 1;
15         }

这样写好像破解不了呢……

Death_Hacker;的主页 Death_Hacker; | 初学一级 | 园豆:59
提问于:2012-06-08 09:49
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册