ASP.NET如何获取远程图片
2007-11-12 16:06
537 查看
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Default7 : System.Web.UI.Page
......{
protected void Page_Load(object sender, EventArgs e)
......{
string sRmFile = "http://zi.csdn.net/1000huawei.gif";
string sSavePath = "c:@0huawei.gif";
System.Net.WebClient wc = new System.Net.WebClient();
try
......{
wc.DownloadFile(sRmFile, sSavePath);
Response.Write("远程文件已经下载完毕!");
}
catch (System.Exception ex)
......{
Response.Write("error:" + ex.Message.ToString());
}
}
}
相关文章推荐
- ASP.NET如何获取远程图片
- ASP.NET如何获取远程图片
- [转]ASP.NET如何获取上传图片尺寸(是指宽高)
- php ASP.NET 远程获取图片方法总结
- ASP.NET中如何获取上传图片的宽和高
- ASP.NET 实现通过URL 获取远程的图片或者文件方法
- asp.net远程获取文件代码
- ASP.NET误人子弟教程:在MVC下如何返回图片
- asp.net 获取html代码中图片的URL地址
- 如何在asp.net中获取GridView隐藏列的值?
- ASP.NET如何存取SQL Server数据库图片
- 在ASP.NET Core应用中如何设置和获取与执行环境相关的信息?
- 如何在ASP.Net 中把图片存入数据库
- asp.net服务端代码如何获取客户端控件的值?
- asp.net 中如何得到图片的高度(height)和宽度(width)以及生成图片的缩略图 C#
- Asp.net环境下如何生成随机图片
- (原創) 如何将图片转成Binary Image? (.NET) (ASP.NET) (C#) (GDI+) (Image Processing)
- ASP.NET如何存取SQL Server数据库图片2
- 用ASP.NET实现下载远程图片保存到本地的方法 保存抓取远程图片的方法
- asp.net如何获取页面动态生成的服务器控件