62,046
社区成员
发帖
与我相关
我的任务
分享
public void ProcessRequest(HttpContext context){
string url = context.Request.RawUrl;
string filePath= @"E:\\"+url;
if (File.Exists(filePath)){
context.Response.Clear();
context.Response.ContentType = "image/png;image/jpeg;image/jpg";
context.Response.AddHeader("Content-Location", context.Request.Url.ToString());
context.Response.WriteFile(url);
}
}