×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Not able to get the File after downloading file using QHttp

    Hi...

    I want to download a file using QHttp or QNetworkAccessManager and parse the file after downloading.
    My problem is that, I am able to do this operation on Simulator, however on real device (Nokia N97) this operation is failed.

    I have given the path of the downloaded file like:

    file.setFileName("MyFile.xml");
    For parsing the above downloaded file(MyFile.xml) I am using the followings like:
    QFile* fileNew = new QFile(":/MyFile.xml");
    The above codes are working fine only on Simulator, but for real device it's not working.

    The file is actually downloaded on device, but I don't know where the file is downloaded on device.
    For Simulator the file is downloaded in the current directory. So from there I am able to parse successfully.

    Any idea how to resolve this issue.

    Thanks....

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Not able to get the File after downloading file using QHttp

    If you are using Qhttp then,

    QHttp is deprecated class, try to use QNetworkAccessManager...
    See this : http://wiki.forum.nokia.com/index.ph...ng_with_Server

    And obviously the File is going to be stored by the path decided by user, according to your phone directory.

  3. #3
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Re: Not able to get the File after downloading file using QHttp

    ok. Thanks a lot.

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Not able to get the File after downloading file using QHttp

    :/MyFile.xml - is a name of resource file since it has leading colon.
    http://doc.qt.nokia.com/4.6/resource...he-application

Similar Threads

  1. How to upload file with QHttp?
    By wshiyc in forum Qt
    Replies: 2
    Last Post: 2010-07-22, 10:55
  2. downloading jar file...
    By jeremiah05 in forum Mobile Java General
    Replies: 4
    Last Post: 2006-05-13, 08:16
  3. downloading a midi file
    By amitvaish in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-12-20, 15:47
  4. downloading a file over http
    By amitvaish in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2005-11-30, 12:21
  5. downloading jad file
    By data_cast in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2005-08-22, 21:42

Posting Permissions

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