I want to read the input stream (HTTP POST to an aspx page) and write it to a file on the web server. Want it to be binary friendly. This is my amateur attempt to write the code...
System.IO.StreamReader sr = new System.IO.StreamReader(Request.InputStream);
System.IO.StreamWriter sw = System.IO.File.WriteAllBytes(appSettings["fileDirectory"] + fileName, sr.ReadToEnd);
It has some type and overloading problems. Any suggestions? Thanks a lot.