I am using fileupload control to save a tiff and PDF files in SQL database. I am saving the file in byte format.
I am using the below code to display in PDF file where the byte array is a original PDF byte array stream.
Code:
byte[] image; dr = cmd.ExecuteReader(); dr.Read(); image = ((byte[])dr["DocImage"]); Response.Clear();