What you probably want is:
from server:
stream << image;
QByteArray arr;
QDataStream stream(&arr, QIODevice::WriteOnly);
stream.setVersion(QDataStream::Qt_4_7);
QImage image = ...;
stream << image;
To copy to clipboard, switch view to plain text mode
then in client:
stream >> image;
QDataStream stream(&some_socket, QIODevice::ReadOnly);
stream.setVersion(QDataStream::Qt_4_7);
QImage image = ...;
stream >> image;
To copy to clipboard, switch view to plain text mode
The operators are in the documentation, >> and << for QImageHope this helps
Bookmarks