C++ (Qt)QPixmap pix;QTcpSocket socket;.......socket.connectToHost( 127.0.0.1, 5555 );if (socket.waitForConnected( 1000 )){ QByteArray data; QDataStream out(&data); out<<pix; socket.write(data);}