Wysota, client is sending me a jpeg file. in the server program, I used readAll() to read it all and pixmap it to a label. But, the image does not appear in the label (though the widget background flashes). To solve this, I was told that they would send the size of the jpeg file along with its content. Hence, I need to read the length first, and then realize how many bytes exactly to read.
Qt Code:
{ QPixmap pm; pm.loadFromData(data); ui->label->setPixmap(pm); }To copy to clipboard, switch view to plain text mode
Bookmarks