Results 1 to 5 of 5

Thread: Strange binary file output when using QByteArray.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Strange binary file output when using QByteArray.

    QDataStream is a serialization mechanism and not a general purpose binary stream. It prepended the length of the byte array to the stream to be able to deserialize it later.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    schunyeh (25th December 2014)

Similar Threads

  1. strange output using topercentencoding()
    By raj_iv in forum Qt Programming
    Replies: 3
    Last Post: 5th December 2012, 07:25
  2. Overlapping binary files with QByteArray stream
    By CodeHunt in forum Qt Programming
    Replies: 4
    Last Post: 2nd May 2012, 10:08
  3. Parsing/extracting from a binary QByteArray
    By Phlucious in forum Qt Programming
    Replies: 4
    Last Post: 2nd December 2011, 19:15
  4. Strange QByteArray mismatch
    By giusepped in forum Qt Programming
    Replies: 0
    Last Post: 25th October 2011, 17:28
  5. dynamicCall and QByteArray - strange characters
    By franco.amato in forum Qt Programming
    Replies: 120
    Last Post: 28th April 2010, 21:11

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.