Saving to MySQL and retrieve

2 posts, 1 answers
  1. Arun
    Arun avatar
    2 posts
    Member since:
    Feb 2016

    Posted 26 Mar Link to this post

    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. Plz recommend the data type also. 

    Thank you very much

    Arun

     

  2. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3175 posts

    Posted 27 Mar Link to this post

    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.
Back to Top