2 Replies Latest reply on Aug 9, 2009 10:43 PM by BahaaHamza

    Converting from Blob to pdf problem

    BahaaHamza

      Dear all


      I have a small problem i hope someone can help me with. I wrote a code that saves a pdf in a database as blob, but when trying to retrieve this blob back and show it as a pdf i had a problem.

      When i tried to show the pdf it appeared as a long stream like the following

       

      %PDF-1.6 %âãÏÓ 27 0 obj <> endobj xref 27 21 0000000016 0000 ...............etc.

       

      so it has the same structure of my original pdf except that it's a long stream in only one line . The original pdf looks like the following


      %PDF-1.6
      %âãÏÓ
      27 0 obj
      <</Linearized 1/L 82015/O 38/E 6717/N 1/T 81428/H [ 716 197]>>
      endobj
                        
      xref
      27 21

      ............etc.

       

      So if anyone can help to change that stream into a pdf again, i will really appreciate it. I attached the 2 files (the stream and the pdf).

      Thanks in advance