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

Saving to MySQL and retrieve

1 Answer 259 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 2
Iron
Arun asked on 26 Mar 2019, 03:19 PM

HI, 

Please help

Language: VB.Net

DB: MySql

Application type: Document Management

How to save the loaded pdf file into MySql table and retrieve the same in same PDF Viewer? I have successfully saved the image from a picture box to SQL server DB (field datatype: image). I am very new to MySQL. recommend the data type also. 

Thank you very much

Arun

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Mar 2019, 11:36 AM
Hello, Arun,  

You can save the loaded document programmatically by using the SaveDocument method of RadPdfViewer from your code.

In order to store a PDF file in your database, you need to store the contents of the file as binary data. After some research I have found the following thread which may be suitable for achieving your goal: https://www.codeproject.com/Questions/857023/How-I-Store-Pdf-File-In-Mysql-Database-And-Retrive

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
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.
Tags
PdfViewer and PdfViewerNavigator
Asked by
Arun
Top achievements
Rank 2
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or