Hi, I'm trying to send a QImage through QTcpSockets, but the data always comes out corrupted on the receiving end.

What's the most direct way of writing and reading the image?