I have a qsqlite which has a column contains raw data.
The codes
QByteArray data= query.value("data").toString().toLatin1();
or
QByteArray data= query.value("data").toByteArray();
give the exact same results which are correct except for some values. Certain bytes in the original data ara being converted into 0x3F. (I think values greater then a certain value)
The code below gives a result beyond far the real data.
data= query.value("data").toString().toUtf8()
What is the thing I'm missing?
--- Edit (example data has been added)
Real raw data in sqlite :
01 a4 81 1c 20 02 00 ff
query.value("data").toString().toByteArray()
gives:
01 a4 81 1c 20 02 00 3f
query.value("data").toString().toUtf8()
gives:
01 c2 a4 c2 81 1c 20 02 00 ef bf bd
By the way, the type of raw data I'm talking about is BLOB in sqlite database.