This is a migrated thread and some comments may be shown as answers.

Open SQL Filestream PDF

3 Answers 476 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Fabio
Top achievements
Rank 1
Fabio asked on 17 Jun 2019, 09:37 AM

Hi, I would like to know if there is a way to load a PDF stored as VARBINARY(MAX) in a SQL Server Filestream field.

Thank you in advance.

 

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 18 Jun 2019, 08:13 AM
Hi Fabrizio,

The PdfViewer needs to receive a file in order to show it. This can be a static file (like in the demo), or it can be an URL to an action method that will return the PDF. This action, in your case, can access the database and extract the file from it so you can return it to the client and the PdfViewer.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Fabio
Top achievements
Rank 1
answered on 23 Jul 2019, 07:52 AM

Hi, could You explain how can I pass with razor a pdf using an action method to the pdfviewer? the only examples I've found all use a file and no information are provided in the documentation 

Thanks in advance

0
Accepted
Marin Bratanov
Telerik team
answered on 24 Jul 2019, 07:30 AM | edited on 02 Jan 2024, 09:56 AM
Hi Fabrizio,

The following knowledge base article contains some examples - both on changing the URL dynamically, and on using a controller action to return the pdf: https://docs.telerik.com/kendo-ui/knowledge-base/pdfviewer-load-pdf-dynamically-action-database


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
James
Top achievements
Rank 1
commented on 31 Dec 2023, 11:44 PM

I need the solution for this also, but the link provided by Martin above does not work.

 

ive managed to setup a controller action to return the jsonresult for the pdf file which works in the dpl viewer , however i need to use the pdfjs implementation tonutilise the print and download functionality.

 

any suggestions?

Ivan Danchev
Telerik team
commented on 02 Jan 2024, 09:58 AM

Tags
PDFViewer
Asked by
Fabio
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Fabio
Top achievements
Rank 1
Share this question
or