我正在尝试使用上传处理程序上传视频,但在上传大型视频文件时system.outofmemoryexception
抛出。我的代码在下面
using System.Collections.Generic;
using System;
using System.Drawing;
using System.Web;
using System.IO;
using SageFrame.Web;
using System.Web.SessionState;
using System.Web.Configuration;
public class UploadHandler : IHttpHandler, IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
HttpRuntimeSection configSection = new HttpRuntimeSection();
context.Response.Write(configSection.MaxRequestLength);
HttpRequest Request = HttpContext.Current.Request;
HttpFileCollection myfile = Request.Files; ////Here i get error
}
}
我正在使用VS2010
谢谢。