Hi!
How can I get the file which is downloaded by download manager?
Can I use the file for reading during the download?
I followed the example described in http://wiki.forum.nokia.com/index.ph...ogrammatically
and I get an event EHttpDlCompleted, but when I try to get the file handle:
The download manager crashes. If I try to set in the begining the file handle it also crashes the DMgr server.Code:void CTMDownloader::HandleDMgrEventL(RHttpDownload &aDownload, THttpDownloadEvent aEvent ) { ... switch ( aEvent.iDownloadState ) { ... case EHttpDlCompleted: { RFile file; aDownload.GetFileHandleAttribute( file ); } }
error is -15 : server terminated.Code:RFs fs; fs.Connect(); RFile file; if(file.Open( fs, _L("C:\\Data\\Videos\\hvf.mp4"), EFileWrite) != KErrNone) {file.Create( fs, _L("C:\\Data\\Videos\\hvf.mp4"), EFileWrite);} TInt error = iDownload->SetFileHandleAttribute( file );
What can be the problem?
Thanks for your help!
pka





