C# - Binary PDF File on Web Broswer via Binary Stream
Your binary PDF File was saved in MSSQL2008 in image data type.
Byte[] _binary_document;// you get your binary data from database and assign to this parameter.
//Result of binary stream
Response.ContentType = "Application/pdf";
Response.AppendHeader("Content-Length", _binary_document.Length.ToString());
Response.BinaryWrite(_binary_document);
Byte[] _binary_document;// you get your binary data from database and assign to this parameter.
//Result of binary stream
Response.ContentType = "Application/pdf";
Response.AppendHeader("Content-Length", _binary_document.Length.ToString());
Response.BinaryWrite(_binary_document);