×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    88

    RHttpDownloadMgr: download exe file

    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
    Code:
    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 debug, when aEvent.iProgressState == EHttpContentTypeRequest is ok, but next step aEvent.iProgressState == EHttpProgNone and aEvent.iDownloadState == EHttpDlFailed

    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
    Best regards,

    Nguyend

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: RHttpDownloadMgr: download exe file

    Probably you cannot download an exe file, you have to download a sis file.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  3. #3
    Regular Contributor
    Join Date
    Jul 2009
    Posts
    88

    Re: RHttpDownloadMgr: download exe file

    Thank you Paul.Todd for reply,

    I have used Wiki to make my app, but about Download Manager APIs don't talk that I cannot download a exe file (maybe I don't see, I so sorry !)

    So, can I have any ways to solve my problem ?

    Thank a lot !
    Best regards,

    Nguyend

Similar Threads

  1. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Symbian
    Replies: 35
    Last Post: 2008-01-17, 09:12
  2. Error with makesis.exe and creating the .pkg file
    By gramya87 in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-10-10, 13:53
  3. Contacts fields order??
    By timatima in forum Symbian
    Replies: 1
    Last Post: 2007-06-08, 13:51
  4. Replies: 1
    Last Post: 2006-07-26, 06:34
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •