This is a migrated thread and some comments may be shown as answers.

save pdf stream

2 Answers 81 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Mohammad
Top achievements
Rank 1
Mohammad asked on 01 Jul 2012, 01:13 PM
hi i have one pdf viewer in my form and save stream of my pdf file in database. when i get stream from data base and open file the file is damage and not open.
can any one help me that save stream of my pdf file in database and get it back?

2 Answers, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 02 Jul 2012, 07:53 PM
Hi Mohammed,

I would like to see if I can help. Could you please share the code you are using to save the PDF? 

Thanks
Lancelot
0
Mohammad
Top achievements
Rank 1
answered on 07 Jul 2012, 05:13 AM
Hi Lancelot,
Thanck you very much, my problem is solved.
i use this code before save my stream :

str.Seek(0,

 

SeekOrigin.Begin);


Best Regards, Mohammad
Tags
PDFViewer
Asked by
Mohammad
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Mohammad
Top achievements
Rank 1
Share this question
or