我是這樣寫的:
?public void ProcessRequest(HttpContext context)??? {??????? if ((context.Request.QueryString["t"] != null) && (context.Request.QueryString["path"] != null))??????? {??????????? context.Response.ContentType = GetMimeType(context.Request.QueryString["t"]);??????????? context.Response.Cache.SetCacheability(HttpCacheability.Public);??????????? context.Response.BufferOutput = false;??????????? context.Response.WriteFile("uppic\\" + context.Request.QueryString["path"]);??????? }
}
?
這樣直接把圖片顯示在瀏覽器中了,我需要是直接提示用戶另存圖片。
- 1 回答
- 0 關注
- 513 瀏覽
添加回答
舉報
0/150
提交
取消