×

Discussion Board

Results 1 to 7 of 7

Thread: download a file

  1. #1
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    download a file

    Hi all,

    i want to download a file (say jpeg or audio or txt) from a particular URl.
    This has to be done staying in the application.

    Hence say, the user says download and my app downloads some content and shows to the user.

    How do i get started in this direction.

    My main worry is downloading of the file and presenting a notification to the user the amount that has been downloaded. Also it is a must for my app to download it without using eternal browser, and save it to a predetermined location...


    thanks for any help
    Amit Kankani
    Nokia Developer Champion

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: download a file

    you can use FTP library and HTTP for downloading the file for both example you can find

    Open C: FTP Client Example
    Symbian OS: End-to-End HTTP API Example v1.3

    http://forum.nokia.com/main/resource...etworking.html
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: download a file

    thanks,
    will look into the examples
    Amit Kankani
    Nokia Developer Champion

  4. #4
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: download a file

    Hi,
    I was able to download the file using HTTP Client APIs...
    However I am facing another problem now, HTTP Client APIs are not supported on s60 sdk 1.2, it is supported from sdk 2.0 only. I want to compile the project for all the versions, hence have to use RSockets I guess.

    Any help as to where can I find a RSocket example to download a http page/file ?
    Amit Kankani
    Nokia Developer Champion

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: download a file

    There is no example for this, just use the normal TCP/IP example and connect it to the port 80 and send the HTTP headers and it works pretty well.

    yucca

  6. #6
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: download a file

    thanks yucca,

    so this means I have to create my own headers before sending and also parse the headers / body received ?

    the parsing logic has to be my own .... and not like the HTTP Client API which does basic http parsing.

    thanks again for the confirmation, so that now I can stop searching for examples and rather think on implementation part.
    Amit Kankani
    Nokia Developer Champion

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: download a file

    thats correct..

    yucca

Similar Threads

  1. Plz help with dcf file download!
    By sunrenfei in forum Symbian
    Replies: 1
    Last Post: 2006-12-14, 15:27
  2. Series 40 - http download of parts of file not possible ?
    By sankotm in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-07-27, 12:35
  3. Replies: 1
    Last Post: 2005-07-26, 14:59
  4. File too large to download using WAP
    By nlecomte in forum Symbian
    Replies: 0
    Last Post: 2003-04-29, 07:33
  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
  •  
×