0
我有一個web服務,運行良好,當我從處理程序頁面(.ashx)調用它時。web服務沒有從aspx頁面運行,但運行良好ashx頁面
我的web服務返回一個zip文件。
但是,當我從我的aspx頁面調用相同的代碼,然後我得到一個損壞的zip文件。調用代碼在下面,在ashx類和aspx頁面中都是相同的。請指教
Dim service As New doc()
Dim b() As Byte
b = service.GetCoverScanTest(New String() {"50BC2781-E4F9-4C0C-AE32-34D4118BD98F"}, System.Configuration.ConfigurationSettings.AppSettings("eDocsSecurekey").ToString())
Response.ContentType = "application/zip"
Response.AddHeader("Content-disposition", "attachment; filename=CoverScan.zip")
Response.BinaryWrite(b)
稻田,謝謝你的回覆。但沒有工作 – Amit 2010-09-07 10:59:55
我沒有response.end()和那個工作。爲指針歡呼 – Amit 2010-09-07 11:15:40