Results 1 to 2 of 2

Thread: Uploading a Pdf file from a Qt Application using MySQl database

  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Uploading a Pdf file from a Qt Application using MySQl database

    I want user to enter a pdf file that must get stored in MySql database and Later I want to display the same File whenever user want to read it.

    Tried .txt file ( its working) , but same thing not working if tried .pdf file.

    Please help..

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Uploading a Pdf file from a Qt Application using MySQl database

    I want user to enter a pdf file that must get stored in MySql database
    This question is asked routinely in various forms, here are two Upload pdf file in the MySQL database, Save PDF to BLOB
    Later I want to display the same File whenever user want to read it.
    There is no Qt functionality to display a PDF file. You need Poppler or some other third party library/application to do that.

    Tried .txt file ( its working) , but same thing not working if tried .pdf file.
    You have a general answer to general question. We do not know what your code is doing that makes TXT files work and not PDF... you don't show us anything that would let us diagnose the problem.

Similar Threads

  1. Upload pdf file in the MySQL database
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 11
    Last Post: 25th October 2011, 08:49
  2. how to save a image file ( say png ) into mysql database?
    By AviMittal in forum Qt Programming
    Replies: 12
    Last Post: 21st July 2011, 13:49
  3. Replies: 3
    Last Post: 9th February 2011, 21:30
  4. Replies: 2
    Last Post: 15th April 2010, 15:59
  5. MySQL database ,Garbled
    By weixj2003ld in forum Qt Programming
    Replies: 7
    Last Post: 9th June 2009, 15:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.