本文介绍了size参数必须介于0和VB中的最大int32值之间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友们,
我需要下载非常大的zip文件:我有这样的错误,下载如何解决这个问题:
size参数必须介于0和最大Int32值之间。参数名称:大小实际值为5528988753。
我尝试过:
受保护的子DownloadFile(ByVal sender As Object,ByVal e As EventArgs)
Dim filePath As String = CType(sender,ImageButton).CommandArgument
Response.ContentType = ContentType
Response.AppendHeader(Content-Disposition,(attachment; filename =+ Path.GetFileName(filePath)))
Response.WriteFile(filePath)
Response.End()
End Sub
解决方案
Dear Friends,
I need to download very large zip files: i have an error like this while download how to solve this:
The size parameter must be between zero and the maximum Int32 value. Parameter name: size Actual value was 5528988753.
What I have tried:
Protected Sub DownloadFile(ByVal sender As Object, ByVal e As EventArgs) Dim filePath As String = CType(sender, ImageButton).CommandArgument Response.ContentType = ContentType Response.AppendHeader("Content-Disposition", ("attachment; filename=" + Path.GetFileName(filePath))) Response.WriteFile(filePath) Response.End() End Sub
解决方案
这篇关于size参数必须介于0和VB中的最大int32值之间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!