Transfer Files over network
-
For Images some thing like this. I can be something like this.
@
QByteArray ba;
QImage image;
QBuffer buffer(&ba);
image.save(&buffer, "PNG");
socket->write(ba);QFile file("in.pdf"); if (!file.open(QIODevice::ReadOnly) return; while (!file.atEnd()) { QByteArray line = file.readLine(); socket->write(line); }
@
I have not tried with pdf though
-
You refer the Qt Assistant documentation itself. If you want any ready program, I can make it and give you.