After compressing with ByteArray, I just Base64Encode
my result, transmit it to my server script, and in this script I Base64Decode
and gzuncompress
.
Why should I Base64Encode
? Because to transmit the data to the server, my data is converted in a string and doing this cause bit lose, and padding errors ... Base64Encode
permits to convert each bit of my data in a valid string to communicate.