I removed QIODevice::Text when saving. I assume that it's binary by default, as there is no binary flag.
I added toBase64 when saving and fromBase64 when reading.
I still get an error that data is corrupted.
When I remove conversion to/from base64 on both sides, it's the same error: input data is corrupted.
The only difference is with and without base64 is:
With base64:
@qUncompress: Input data is corrupted@
Without base64:
@qUncompress: Z_DATA_ERROR: Input data is corrupted // Notice Z_DATA_ERROR@
EDIT
After recompiling entire project, started to work. There are no Text mode flags while reading, saving, and there is no conversion to base64.
Marked as Solved.
Thanks for the help!
Regards,
Jake