S
Steve Drake
All,
I have a HttpHandler that handles a PUT, if i PUT 700MEGs of data it runs
out of memory, i have found that this is due to the Request.InputStream
loading the entire stream when you access it.
If I run any of the following i get the error :
Context.Request.SaveAs(@"C:\1.xxx",false); // I get out of memory
System.Diagnostics.Trace.WriteLine(Context.Request.InputStream.CanRead); //
I get out of memory
byte[] data = new byte[4096];
data = Context.Request.BinaryRead(4096); // I get out of memory
Cheers
Steve
I have a HttpHandler that handles a PUT, if i PUT 700MEGs of data it runs
out of memory, i have found that this is due to the Request.InputStream
loading the entire stream when you access it.
If I run any of the following i get the error :
Context.Request.SaveAs(@"C:\1.xxx",false); // I get out of memory
System.Diagnostics.Trace.WriteLine(Context.Request.InputStream.CanRead); //
I get out of memory
byte[] data = new byte[4096];
data = Context.Request.BinaryRead(4096); // I get out of memory
Cheers
Steve