I Im trying to convener 10GB file in to Byte in asp.net I'm doing this code below:
if (FileUpload1.FileName != "")
{
Byte[] MediaBytes = new
byte[FileUpload1.PostedFile.InputStream.Length];
}
there i added FileUpload1 for browse a file of any size 10GB or any. im cant to convert big file in to Byte and save it in to SQL Sever. i also add this code in web.config which help me to to convert 640MB in Byte and code is working with 640MB file i want to convert big size file too in Byte as well. i used a code in web.config that is below for ISS6
<httpRuntime executionTimeout="9999" maxRequestLength="2099999999"/>
and for iss7 i use this extra code in web.config what is below:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1024000000"/>
</requestFiltering>
</security>
</system.webServer>
please help me out how can i convert big files in Byte easily and fast. please give me solution how can i do this.