Displaying PDF files

Results 1 to 3 of 3

Thread: Displaying PDF files

  1. #1
    Raliat Guest

    Default Displaying PDF files

    I have a PDF file stored as a BLOB in the database. How do I retrieve and display this on the browser. I tried setting Response.ContentType to "application/pdf" and then using the Response.BinaryWrite method but I get junk.

  2. #2
    John Tamburo Guest

    Default RE: Displaying PDF files

    The only way to do this is to write the blob out to a temporary file name on disk in a path relative to your html. Then you will hneed to redirect to that path and name.<BR><BR>John

  3. #3
    Raliat Guest

    Default RE: Displaying PDF files

    Thanks, but how exactly do I do this? My SQL select statment contains the blob and I tried using the Write method of a TextStream object but I got an error.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts