-
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. But I didn’t and so I’ve ended up with a class based off a number of help from various parties including an excellent example at . A very good place to find the specification on what is needed is at . I found this helped alto and explained some of the missing pieces of information…