我正在尝试上传大文件在ASP.net的MVC和下一步保存在数据库。但是当我这样做的时候,我会遇到"outofmemoryexception“。我在这里发布我的文件: public void UploadAttachments(int docId, int folderId) input.CopyTo(ms); }
Kemiller2002 2002发布的答案在大多数情况下对我都很有效,但是当输出文件超过2GB时,我就开始从内存异常错误中解脱出来。引发下列错误消息..。Exception of type 'System.OutOfMemoryException' was thrown.+ FullyQualifiedErrorId : System.OutOfMemoryException
这是使用Powershell 5.1。现在,脚本继续运行,并将其添加到文件</