I use RHttpDownloadMgr to download one exe file from server and save it.
My app runs ok on emulator, but when I debug on device, my app can't download exe file
I debug, when aEvent.iProgressState == EHttpContentTypeRequest is ok, but next step aEvent.iProgressState == EHttpProgNone and aEvent.iDownloadState == EHttpDlFailedCode:RHttpDownload& download = iDownloadMgr.CreateDownloadL(*aUrl); TInt state = download.Start(); ... //in Observer if (aEvent.iProgressState == EHttpContentTypeReceived) { User::LeaveIfError(aDownload.Start()); } switch (aEvent.iDownloadState) { case EHttpDlCompleted: { TInt result = aDownload.SetStringAttribute(EDlAttrDestFilename, filename); aDownload.Move(); aDownload.Delete(); } break; case EHttpDlFailed: { aDownload.Delete(); } break; }
I have try with txt, or jpg is OK on emulator and device, but exe is not OK
Anybody can help me! Maybe my problem is contenttype of file



