Skip to content

Instantly share code, notes, and snippets.

@Krizzzn
Forked from leggetter/gist:769688
Last active December 28, 2015 09:59
Show Gist options
  • Save Krizzzn/7483266 to your computer and use it in GitHub Desktop.
Save Krizzzn/7483266 to your computer and use it in GitHub Desktop.
private string GetDocumentContents(System.Web.HttpRequestBase Request){
using (Stream receiveStream = Request.InputStream)
{
using (StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8))
return readStream.ReadToEnd();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment