Question

For many reasons i need to download file by piece of 1024 byte.

I find nothing in QnetworkAccessManager. I can not use the "header technic" because my server don't support it.

I call header technic, the tecnic who send stuff like "Content-Range: bytes 21010-47000/47022" in the header of http request

Was it helpful?

Solution

Use a QTcpSocket instead and call QTcpSocket::setReadBufferSize() with an appropriate value. Then you won't be able to read bigger chunks than the size of the buffer you set.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top