PDA

View Full Version : Uploading a Pdf file from a Qt Application using MySQl database



maanbikram
19th October 2011, 10:37
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..

ChrisW67
20th October 2011, 02:21
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.