Hi
Try like this ,get binary files form sql and using file stream u save in temp folder and show pdf form that temp folder.
Dim buffer As Byte()
buffer = fadt(0)("PDF")
Dim fs As FileStream = File.Create(docflxpath)
fs.Write(buffer, 0, buffer.Length)
fs.Close()
fs.Dispose()
buffer = Nothing
in above i will select file name ,binary form and that binary form fill in datatable,here i use fadt and using this datatable i will pass that binary to buffer and docflxpath is saving pdf file path ,in this u give like "C:\test\documentname.pdf" then it save documentname with .pdf in C:\test
then show pdf form C:\test folder .
Note :
for docflxpath u need to give name and add .pdf at last
Regards
Aravind