Hi ,
I have a problem when downloading a video. It can't be played on Symbian 3 devices. it's downloaded with the same size, but when i go to the video to play it , i got the following error :
"Unable to play. File corrupted or format not supported."
I am using the below code.
Anyone can help me in this issue ????Code:QNetworkAccessManager *nam; nam = new QNetworkAccessManager(this); connect(nam, SIGNAL(finished(QNetworkReply*)), this, SLOT(downloadvideo(QNetworkReply*))); nam->get(QNetworkRequest(QUrl("http://......./1.mp4"))); void MainWindow::downloadvideo(QNetworkReply *httpmsg) { if (httpmsg->error() == QNetworkReply::NoError) { QByteArray byteshttpx = httpmsg->readAll(); QByteArray sic2; // i can remove those 2 lines, but sic2+=byteshttpx; // some websites said that some image problem can be solved by this QString filename; filename= "C:\\data\\videos\\1.mp4"; QFile file1(filename); if (file1.open(QIODevice::WriteOnly)) { file1.write(sic2); file1.close(); } } }
Best Regards,
Lipos123

Reply With Quote


