×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    26

    File transfer to remote server. Need help!

    I'm looking to transfer files from a 3.0 phone(N95 8Gb) to a remote server over Wireless/GPRS networks. Is there is a standard SDK example on how this is done? I've searched the forums for many days now. I can't seem to find pointers to how this is exactly done.

    I have some experience with Symbian C++ programming but have never done any networking stuff. Any pointers would be very very helpful. I'm not particular about the method(ftp/http post etc) or the programming language.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: File transfer to remote server. Need help!

    Nit: The N95 8GB is not a "3.0 phone", but a "3.1 phone" (S60 3rd Edition, Feature Pack 1).

    Here's one example of uploading (images) to Flickr: http://developer.symbian.com/main/do...de/cpp/#flickr

    See also, e.g., http://www.newlc.com/en/topic-4829

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    26

    Re: File transfer to remote server. Need help!

    My apologies. 3.1 is exactly what I meant! I'll look those examples up.
    Thanks.

  4. #4
    Registered User
    Join Date
    Aug 2006
    Posts
    26

    Re: File transfer to remote server. Need help!

    If I did use http post, then where would I be "posting" to? This question is probably naive, but I am not very good at this networking stuff. What infrastructure would I need to set up on the receiving side? Do I need to setup a http server (What does that mean?)?

    And if use the RSocket method in the link specified above, how would I transfer files? Looks like RSocket can only be used to send descriptors. I can probably use the RFile API to make a descriptor out of the file but how would the receiving side(A PC running some Java code waiting for data over the socket?) understand this?

    I'll be grateful for any links/data that help improve my clarity on this.
    Last edited by TheLittleBird; 2009-04-29 at 21:38.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: File transfer to remote server. Need help!

    It is not about RSocket / java.net.Socket, it is about the HTTP protocol. If you produce a proper HTTP POST on the Symbian side, it is going to be recognized properly by a web server.

  6. #6
    Registered User
    Join Date
    Aug 2006
    Posts
    26

    Re: File transfer to remote server. Need help!

    Wizard_hu_

    Thanks. I'm starting to get it.

    So I need to set up my PC as a web server (Apache?). What does the server do if I send a file to it. I need to send files to a certain folder in the server machine. How do I control that?

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: File transfer to remote server. Need help!

    Quote Originally Posted by TheLittleBird View Post
    Wizard_hu_

    Thanks. I'm starting to get it.

    So I need to set up my PC as a web server (Apache?). What does the server do if I send a file to it. I need to send files to a certain folder in the server machine. How do I control that?
    When I have to do something like this I generally expose web-services on the server, I use JBoss to set it up, and then on the server side you can put in your code to handle the recieved data just the way you like. But I am sure there would be other ways as well, it all depends on which approach suits you right.

    Cheers,
    Mayank

  8. #8
    Registered User
    Join Date
    Aug 2006
    Posts
    26

    Re: File transfer to remote server. Need help!

    Mayank,

    Can you point me to examples of such applications? That would be super helpful. Thanks.

  9. #9
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: File transfer to remote server. Need help!

    Quote Originally Posted by TheLittleBird View Post
    Mayank,

    Can you point me to examples of such applications? That would be super helpful. Thanks.
    Unfortunately I dont have a client-server sort of example, but some of these links would be handy for you to get the desired :-

    http://wiki.forum.nokia.com/index.ph..._on_Symbian_OS
    http://wiki.forum.nokia.com/index.ph...Url_parameters
    http://wiki.forum.nokia.com/index.ph...d_soap_request

    Hope this helps.

    Cheers,
    Mayank

    P.S. for the server bit you can do a lil bit of google and m sure you will have tonnes of links/info as well.

Similar Threads

  1. How to copy a file to a remote Drive(WebDav Server)
    By swagatdash in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-12-30, 18:06
  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: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

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