Upload Large files(1GB)-ASP.net
Posted
by Ramya Raj
on Stack Overflow
See other posts from Stack Overflow
or by Ramya Raj
Published on 2009-10-21T08:15:22Z
Indexed on
2010/05/07
5:08 UTC
Read the original article
Hit count: 256
I need to upload large files of atleast 1GB file size. I am using ASP.Net, C# and IIS 5.1 as my development platform.
I am using HIF.PostedFile.InputStream.Read(fileBytes,0,HIF.PostedFile.ContentLength) before using File.WriteAllBytes(filePath, fileByteArray)(doesnt go here but gives System.OutOfMemoryException' exception)
Currently i have set the httpRuntime to executionTimeout="999999" maxRequestLength="2097151"(thats 2GB!) useFullyQualifiedRedirectUrl="true" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="5000" enableVersionHeader="true" requestLengthDiskThreshold="8192" Also i have set maxAllowedContentLength="2097151" (guess its only for IIS7)
I have changed IIS connection timeout to 999,999 secs too.
I am unable to upload files of even 4578KB(Ajaz-Uploader.zip)
© Stack Overflow or respective owner