Tuesday, September 25, 2012

Large files in ASP.NET Web API

http://www.strathweb.com/2012/09/dealing-with-large-files-in-asp-net-web-api/

1. Configuring IIS
<requestLimits maxAllowedContentLength="2147483648" />
2. ASP.NET
 <httpRuntime maxRequestLength="2147483648" />
3. Out of memory through buffering
 public interface IHostBufferPolicySelector
{
   bool UseBufferedInputStream(object hostContext);
   bool UseBufferedOutputStream(HttpResponseMessage response);
}

No comments:

Post a Comment