Created
March 30, 2012 14:59
-
-
Save dannylloyd/2252120 to your computer and use it in GitHub Desktop.
Write file to output stream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Context.Response.ContentType = "application/pdf; name=" & filename | |
Context.Response.AddHeader("content-disposition", "inline; filename=" & filename) | |
Context.Response.AddHeader("content-length", pdfBytes.Length.ToString()) | |
Context.Response.BinaryWrite(pdfBytes) | |
Context.Response.End() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment