Hi all!

I have some experience with Qt and mysql but normally what I do is save ints and Varchars. I need to save a QByteArray that I send via QTcp into a database (mysql) and later recover it. For some reason the values come all wrong like a value that was suppose to be 8 comes as 16843008.

Can someone tell me how to do this?

Do I have to open the QByteArray with the QDataStream or QBuffer?