积极答复者
asp.net中网络图片路径中的图片下载至本地!

问题
答案
-
下载方法
先引用命名空间
using System.Net;
再实例化对象
WebClient web = new WebClient();
然后调用DownloadFile方法
string app = "http://www.xuxule.net/upload/2004_08/04081418099308.gif";
string filename = "D:\\04081418099308.gif";
web.DownloadFile(app, filename);
发现问题,解决问题!- 已标记为答案 张凯 2010年9月21日 8:11
全部回复
-
下载方法
先引用命名空间
using System.Net;
再实例化对象
WebClient web = new WebClient();
然后调用DownloadFile方法
string app = "http://www.xuxule.net/upload/2004_08/04081418099308.gif";
string filename = "D:\\04081418099308.gif";
web.DownloadFile(app, filename);
发现问题,解决问题!- 已标记为答案 张凯 2010年9月21日 8:11