save pdf stream

3 posts, 0 answers
  1. Mohammad
    Mohammad avatar
    21 posts
    Member since:
    Jul 2010

    Posted 01 Jul 2012 Link to this post

    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. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 02 Jul 2012 Link to this post

    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
  3. DevCraft banner
  4. Mohammad
    Mohammad avatar
    21 posts
    Member since:
    Jul 2010

    Posted 07 Jul 2012 Link to this post

    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
Back to Top