If your file contains binary data then why are you reading it with QTextStream?