Discussion Board

Results 1 to 7 of 7

Thread: download a file

  1. #1
    Nokia Developer Champion amitkankani's Avatar
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572
    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
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    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

  3. #3
    Nokia Developer Champion amitkankani's Avatar
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572
    thanks,
    will look into the examples
    Amit Kankani
    Nokia Developer Champion

  4. #4
    Nokia Developer Champion amitkankani's Avatar
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    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 amitkankani's Avatar
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    thats correct..

    yucca

Similar Threads

  1. Plz help with dcf file download!
    By sunrenfei in forum Symbian C++
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved