PDA

View Full Version : How to connect MYSQL using QT and save image to the blob field?



Gokulnathvc
16th June 2011, 06:53
How to connect MYSQL using QT and save image to the blob field?

wysota
16th June 2011, 13:16
What exactly are you having problems with?

Gokulnathvc
16th June 2011, 14:11
I have taken screenshots, now am saving the images as JPEG in D: drive. I want to get the binary data of the JPEG file and saving it in the blob field of the MYSQL database.

tinysoft
16th June 2011, 15:34
take a look at this (http://dev.mysql.com/doc/refman/5.1/en/blob.html) and this (http://www.qtcentre.org/threads/41818-Read-BLOB-from-MySQL-database?p=191412#post191412) links

wysota
16th June 2011, 15:49
I have taken screenshots, now am saving the images as JPEG in D: drive. I want to get the binary data of the JPEG file and saving it in the blob field of the MYSQL database.

Ok but which part of the process causes you difficulties?