views:

37

answers:

1

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

A: 

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.

teukkam
Thank you, in fact i find an other solution :i use qnetworkreply::setReadBufferSize()That's coolhttp://doc.qt.nokia.com/4.6/qabstractsocket.html#setReadBufferSize
zobi8225