Downloading dll file
-
Hello,
got following problem:- I'm downloading file thru QNetworkAccessManager
- I recived QNetworkReply* reply which reply->size() returns correct size value of downloaded file.
- When Im trying to save it to the disk it lose some data
Im saving file in following way:
@
QFile file(fille.dll);
if(file.open(QIODevice::WriteOnly)
{
file.write(reply.readAll());
file.close
}
@
Anyone know where is the problem or what Im doing worng?BR
TomekP.S.
The difference between sizes is: 11902976(reply) 11894784(reply->readAll()) -
Hi,
Did you wait for the finished() signal?
-
Take a look on "Network Download Example":http://qt-project.org/doc/qt-5/qtnetwork-download-example.html