QFile in("c:\\test\\pic.bmp"); in.open(QFile::ReadOnly); QByteArray imageBytes = in.readAll(); socket->write(bytesToSend);
qDebug() << bytesToSend;
imageBytes.size();
qDebug() << socket->(bytesToSend);