PDA

View Full Version : Problems with Image Streaming



gorsanmo
26th April 2011, 17:24
Hello , I am newbie in Qt . I have implemented a Qt TCP - client for receiving images from a java server. The code is the following :

QTcpsocket *socket_video = (QTcpSocket *)sender();

QByteArray nbytes2 = socket->readAll();

I am interested in obtaining an IMage by a QByteArray and represent it.
How is it possible to create a IMage in Qt by a QByteArray ? Do you have any code example ?
Thanks.
GOrka

mcosta
26th April 2011, 17:31
Please, don't post the same question in multiple threads http://www.qtcentre.org/threads/41000-Obtain-const-QImage-from-QByteArray