Hi all
I need some help on usage of RHttpDownload class. At the moment I use instance of RhttpDownloadMgr class to create an instance of RHttpDownload class.
I do get all the required notification when the download completes. Here is my HandleDMgrEventL callback function:Code:RHttpDownload& download=iDownloadMgr.CreateDownloadL((*pUrl),bResult); CleanupStack::PopAndDestroy(pUrl); if(!bResult) User::Leave(KErrAlreadyExists); User::LeaveIfError( download.SetIntAttribute( EDlAttrAction, EDoNothing) ); User::LeaveIfError( download.Start() );
My problem is although I get notification that the downloaded file has been moved I cannot find it in c:\\system\temp\ directory. Is there any other way of accessing downloaded data? Thanks a lot.Code:EXPORT_C void CFileDownloaderBase::HandleDMgrEventL( RHttpDownload& aDownload, THttpDownloadEvent aEvent ) { DPRINT(_L8("CFileDownloaderBase::HandleDMgrEventL - " "iDownloadState(%d),iProgressState(%d)"), aEvent.iDownloadState,aEvent.iProgressState); switch(aEvent.iDownloadState) { case EHttpDlPaused: if( aEvent.iProgressState==EHttpContentTypeReceived) aDownload.Start(); break; case EHttpDlCompleted: { if( aEvent.iProgressState==EHttpProgNone) { TFileName filename(_L("c:\\system\temp\\tt.gif")); TInt error = aDownload.SetStringAttribute( EDlAttrDestFilename, filename ); error = aDownload.Move(); } break; } //end case EHttpDlCompleted: } //end switch(aEvent.iDownloadState) }





