You are good in researching others work flow.![]()
You are good in researching others work flow.![]()
... and you, Sir, are very good at ignoring all advice and continuing to ask the same question yet again (resurrecting a two year old thread for no reason) with no evidence of any effort on your part to take on advice already offered.
Here is the summary:
- Stop using obsolete, deprecated or unsafe methods, e.g. QString::sprintf(), when better alternatives exist
- Use QBuffer and QByteArray to save an image to an in-memory buffer (no temporary disk file).
- Learn some basic SQL. If you cannot construct a basic SQL query outside Qt/C++ then you will not have any luck with QSqlQuery.
- Use QSqlQuery::prepare() and QSqlQuery::bindValue() to insert blob's. In fact, you should use this anywhere you are tempted to build a query from many parts into a string.
- You need to build and use the MySQL native driver to access your database directly rather than through ODBC.
Last edited by ChrisW67; 22nd July 2011 at 00:40.
Gokulnathvc (22nd July 2011)
Bookmarks