Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Load PDF from stream #30

Closed
mattobob opened this issue Mar 7, 2017 · 2 comments
Closed

Load PDF from stream #30

mattobob opened this issue Mar 7, 2017 · 2 comments

Comments

@mattobob
Copy link

mattobob commented Mar 7, 2017

Is there a way to load PDFs from byte stream?
I have PDFs saved as byte array into DB, I would like to show them from within the viewer, but i only have "src" and it is supposed to open the document from an url.

@jasny
Copy link
Member

jasny commented Mar 7, 2017

@mattobob How does that data come from the server to the client? You must have some sort of server side script that gets the content from the DB and serves it over HTTP.

Just make sure you set the Content-Type header to application/pdf and you're good to go.

@jasny jasny closed this as completed Mar 7, 2017
@jasny
Copy link
Member

jasny commented Mar 7, 2017

Note that if you're getting the PDF as base64 string, see #24

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants