Consulting

Results 1 to 5 of 5

Thread: Display PDF from binary, without writing file

  1. #1
    VBAX Mentor Movian's Avatar
    Joined
    Aug 2008
    Location
    NC, USA
    Posts
    399

    Display PDF from binary, without writing file

    so along the same lines as a previous post I need to be able to display a PDF file from binary data stored in an SQL field without writing that file to disk first.

    I found a way to encode images in base64 and embed the base64 string in a web page to display it in a Microsoft WebBrowser control, unfortunately this approach doesn't appear to work for PDF files (Apparently it would if it was chrome )

    This needs to be deploy able to existing clients without the need for installing extra apps, so it either needs to be done using native windows abilities (such as embedding in a web page for display in IE) OR use whichever PDF viewer they have installed (Adobe, Foxit etc etc).

    as always I will keep researching while waiting for responses but any help is appreciated!
    "From the ashes of disaster grow the roses of success" - Chitty chitty bang bang

    "I fear not the man who has 10,000 kicks practiced once. I fear the man who has 1 kick practiced 10,000 times" - Bruce Lee

  2. #2
    VBAX Tutor
    Joined
    Mar 2014
    Posts
    210
    Location
    Why cant you just write the pdf to a temp file, then load the pdf to sql field? It dont cost nuthin.

  3. #3
    VBAX Mentor Movian's Avatar
    Joined
    Aug 2008
    Location
    NC, USA
    Posts
    399
    New security requirements mean I can't use tempfiles and can only generate a file if the user specificaly selects to export it .

    If they just want to view the file there should be a way to display it without needing to generate a file....
    "From the ashes of disaster grow the roses of success" - Chitty chitty bang bang

    "I fear not the man who has 10,000 kicks practiced once. I fear the man who has 1 kick practiced 10,000 times" - Bruce Lee

  4. #4
    VBAX Expert
    Joined
    Oct 2012
    Posts
    726
    Location
    How silly. You generate a file every time you open Access.
    But whatever.
    I guess you tried using the bound object frame and it din't work, yeah?

  5. #5
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    Have you tried to write to the clipboard and copy it to a pdf display? I have no code just a head full of.... Sometimes we have to work within the constraints of someone else's world.

Posting Permissions

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