Hi,
I develeoped Client Server Communication with QSslSocket, The protocol of the communication is xml.
The xml strings can be very long and so I want to use compression.
I did it and it seems to work, but I get following message at the client:
Qt Code:
  1. qUncompress: Z_DATA_ERROR: Input data is corrupted
  2. qUncompress: Z_DATA_ERROR: Input data is corrupted
  3. qUncompress: Z_DATA_ERROR: Input data is corrupted
  4. qUncompress: Z_DATA_ERROR: Input data is corrupted
  5. qUncompress: Z_DATA_ERROR: Input data is corrupted
  6. qUncompress: Z_DATA_ERROR: Input data is corrupted
  7. qUncompress: Z_DATA_ERROR: Input data is corrupted
To copy to clipboard, switch view to plain text mode 

Server:
Qt Code:
  1. void Server::sendXML(QString message) {
  2. QByteArray block;
  3. block.append(message);
  4. socket->write(qCompress(block));
  5. }
To copy to clipboard, switch view to plain text mode 

Client:
Qt Code:
  1. void Client::readyReadSlot()
  2. {
  3. buffer.append(socket->readAll());
  4. QString result(qUncompress(buffer));
  5. }
To copy to clipboard, switch view to plain text mode 

It works, but what can I do against the error message.

thank u