摘要: 首先是创建一个类,继承于ActionResult,记住要引用System.Web.Mvc命名空间,如下:public class ImageResult : ActionResult{public ImageFormat ContentType { get; set; }public Image i... 阅读全文
posted @ 2015-04-25 23:12 三人成虎 阅读(1162) 评论(0) 推荐(1)
摘要: 以下介绍两种方法:1.利用WebRequest,WebResponse 类WebRequest wreq=WebRequest.Create("http://up.2cto.com/2012/0516/20120516112717995.gif"); HttpWebResponse wresp... 阅读全文
posted @ 2015-04-25 23:10 三人成虎 阅读(931) 评论(0) 推荐(0)