You can use BinaryRead to read from the request body:
Request.BinaryRead
Or you can get a link to the Stream object with:
Request.InputStream
Then you can use CopyStream :
using (FileStream fs = new FileStream(...)) CopyStream(fs, Request.InputStream);
Mehrdad afshari
source share