Tag Archive: MemoryStream

Mar 18

Posting content from memory stream using HttpWebRequest c#

So I needed to upload a zipped file that I was creating in memory and send it to an MVC action on my server. I read plenty of examples and perhaps I could have gone down the route of saving the stream to a file on disk and then using the .net WebClient UploadFile method. …

Continue reading »