Why Qbytearray.mid() method remove charactor "0D" from new QBytearray
-
Hi, when I used the method Qbytearray.mid() it remove the "0D" character or white space how I can solve this problem...I want to account for all characters.......
Thanks in advanceQByteArray tempRealByteArray=fileByteArray.mid(0+i,4);
-
@stackprogramer
This is simply not so.QByteArray::mid()
does not "remove" any characters, it returns precisely whatever characters are there. If you think characters/bytes have been removed you are mistaken, you must be doing something afterward (or before) which removes them, or they are there and you are failing to see them. Show exactly what makes you think they are missing. -
If you have created the content of the QByteArray using a QIODevice in QIODevice::Text mode then carriage returns may be removed on read and added on write (depending on platform). Do not use text mode if you want verbatim data.