qt - Strange characters when transferring file with QTcpSocket -


i'm trying transfer file using qtcpsocket. connection runs fine, problem when try record received bytes on file. when open file there strange characters @ beginning of file. these characters?

my problem was saving whole object in file. when use operator >> in stream, qt serializes whole object , sends it. if want write bytes of file, or whatever want, need use writerawdata or write methods passing char * bytes.

:)


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -