Hello All,
I have a code snippet written in Qt4. I want to port the following code to Qt3. I have given my attempt but the data what I get is "not complete". Since the data is binary, I assume a NULL character is encountered and terminates to read further.
Qt4 code
Code:
return; fRead.close();
Qt3 code
Code:
if (!fRead.open(IO_ReadOnly)) return; fRead.close(); QCString strleft16 = QCString( message.data() ); QCString strRestRightAfter16 = QCString( message.data() ); QByteArray restRightAfter16 = strRestRightAfter16.right( strBody.length() - 16 ); //I dont the full data into restRightAfter16. The data is incomplete.
The binary file is really large and I want to read the entire data as given in the code above. I dont have any problems with Qt4 code and it works very fine.
Where I'm I going wrong?
Thanks