這個問題很久之前就有人問過了,最近又有人問到,就把它放在我的blog裡
一般下載檔案都會用Response.WriteFile(FullName)
這樣會造成 Aspnet_wp.exe 暫存了太大空間而導致下載失敗,建議採用stream方式下載
asp.net(c#)
部分程式碼
參考網址:
http://www.blueshop.com.tw/board/show.asp?subcde=BRD200706131110357NX&fumcde=
http://www.blueshop.com.tw/board/show.asp?subcde=BRD20080506151701ZMH&fumcde=FUM20041006161839LRJ
# re: ASP.NET解決網頁下載檔案過大的問題,使用stream方式下載, Posted by unicorn on 2008/5/8 上午 03:02 回覆
也可以用 Response.TransmitFile
# re: ASP.NET解決網頁下載檔案過大的問題,使用stream方式下載, Posted by puma on 2008/10/15 上午 09:32 回覆
更多Response.TransmitFile的參考資料...
http://weblogs.asp.net/dmiyamasu/archive/2008/02/25/save-server-memory-with-response-transmitfile.aspx
http://forums.asp.net/t/1185493.aspx