我想用ASP.NET上传1 GB的文件大小。我写这段代码
Dim bytes(up_FileImage.UploadedFiles(0).ContentLength) As Byte
bytes = File.ReadAllBytes(Path.Combine(Request.PhysicalApplicationPath, "App_Data/", ViewState("DirectoreName").ToString(), up_FileImage.UploadedFiles(0).FileName))
itemDocFile.FileImage = bytes
并在web.config中编写此代码
<httpRuntime maxRequestLength="102400" executionTimeout="3600"/>
但在第一行我得到此错误
system.out of memory exception
请帮助我。全部谢谢