ServiceStack/ServiceStack — pull request #95 by davrot (2012-02-08 20:48:08+00:00)
Title: Do not cache file content in memory to allow uploading large files

With this fix, it is possible to set the HttpWebRequest.AllowWriteStreamBuffering property to false, without running in a OutOfMemory Exception. (Useful when uploading large files).

I have removed the MemoryStream to write directly to the WebRequest`s RequestStream. This stream will be bufferd in memory anyway if the AllowWriteStreamBuffering is set to True, so the additional MemoryStream is pointless.