QNetworkReply and file downloading problem
General and Desktop
2
Posts
2
Posters
763
Views
1
Watching
-
Hello,
I experience a strange situation:
@this->connect( this->networkManager, SIGNAL( finished( QNetworkReply* ) ), this, SLOT( onDownloadingFinished( QNetworkReply* ) ) );void UpdateMgr::onDownloadingFinished( QNetworkReply* reply )
{
if( reply->error() == QNetworkReply::NoError )
{
qDebug() << "Size of downloaded file:" << reply->size();
qDebug() << "Size of saved file:" << reply->readAll().length();
}
@
Output:
Size of downloaded file: 11902976
Size of saved file: 11894784Casue of that I det damaged file. Why????