2lights
1st October 2013, 07:53
Good Day,
I have a binary field, that I need to read bit by bit
Is there a way to read in the actual binary values of a file.
I got this so far, but it reads per byte(quint8)
QDataStream in(&fileLoadBinary);
int fileSize = fileLoadBinary.size();
int i = 0;
QStringList strngLst;
quint8 tempVariable;
while(i < fileSize)
{
in >> tempVariable;
qDebug() << tempVariable;
strngLst.append(QString(tempVariable));
i++;
}
qDebug() << strngLst;
I want the actual binary values of the file(bit by bit)
Whats the way forward?
Help is much appreciated :)
Kind Regards
I have a binary field, that I need to read bit by bit
Is there a way to read in the actual binary values of a file.
I got this so far, but it reads per byte(quint8)
QDataStream in(&fileLoadBinary);
int fileSize = fileLoadBinary.size();
int i = 0;
QStringList strngLst;
quint8 tempVariable;
while(i < fileSize)
{
in >> tempVariable;
qDebug() << tempVariable;
strngLst.append(QString(tempVariable));
i++;
}
qDebug() << strngLst;
I want the actual binary values of the file(bit by bit)
Whats the way forward?
Help is much appreciated :)
Kind Regards