|
|
On October 19, 2004 02:03 pm, John Dean wrote:
> Hi
>
> I don't seem to be able to dump the contents of a QByteArray to a file. I
> have tried using QVariant to first convert to a QString, but when I read
> the data back again extra bytes are added or some bytes are changed.
>
> Any help with this problem would be much appreciated
>
> Thank you in advance
Have you looked at qdatastream.html#raw which tells you how to go about doing
this? Basically, you write out how many bytes you are about to write out,
then you use QDataStream::writeRawBytes().
--
chris@xxxxxxxxxxxxxxxxx, chris@xxxxxxxxxxxxx
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|