Discussion Board

Results 1 to 11 of 11

Thread: File Transfer

  1. #1
    Registered User goglog's Avatar
    Join Date
    Jun 2006
    Posts
    7
    Hi all,

    I have a question regarding HTTP file transfer. I searched the forum as well as Google for code examples and documentations, but couldn't find any detailed example.

    I need to build a software that allows the user to view images, SMS messages, videos and phone contacts and then to send the selected information (for example and image file or a contact) to the server. I know how to list the files on the mobile phone (using FileConnection), but I have some questions regarding the client side:

    1. Using FileConnection I can list the entire filesystem. I want to limit the list to Images, SMS messages, Contacts and Videos (note it has to work on additional mobile phones besides Nokia).

    2. How do I submit the file over HTTP? The server we run here at the university is Apache and PHP. I finished the server side (couple of PHP scripts), but I don't know how to submit the information that was selected by the user.

    If you have any documented examples that you wish to share, please let me know.

    Thanks!

  2. #2
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi goglog,


    Take a look at the Java Networking tutorials and links below, just pick the right one and adapt it to your needs...

    http://forum.nokia.com/main/1,,1_0_10_8,00.html

    http://developers.sun.com/techtopics...es/#networking

    Hope it helps!

    BR,

    Juarez Junior

  3. #3
    Registered User goglog's Avatar
    Join Date
    Jun 2006
    Posts
    7
    Hi,

    Indeed it helps. However, it doesn't solve my first problem.

  4. #4
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi goglog,

    "my first problem"

    Could not figure out the reasons why. What's is it?

    BR,

    Juarez Junior

  5. #5
    Registered User goglog's Avatar
    Join Date
    Jun 2006
    Posts
    7
    "Using FileConnection I can list the entire filesystem. I want to limit the list to Images, SMS messages, Contacts and Videos (note it has to work on additional mobile phones besides Nokia)."

    I want to let the user see 'Images', 'SMS', 'Videos', 'Contacts' instead of letting him nagivate through the file system. What I mean is that when the user lauches the application, the main form contains links to the above mentioned directories. When the user clicks on Images, for example, the applicaitons displays all the images on the mobile phone.

  6. #6
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi goglog,

    I'm not sure if i got your issue right but i guess you should implement a filter yourself, just limit what can be selected by implementing this logic for your application.

    BR,

    Juarez Junior

  7. #7
    Registered User aditya.binju's Avatar
    Join Date
    Mar 2006
    Posts
    32
    Hi goglog ,

    i think u have to first store all your data ina nintermidiate storage like enumaerator and then based on the extension of the required contents list only the required.That is the way u can only do it ....................

    The code u would have got as example that shows file browsing even that also stores the file in an enumerator and then displays it with the use og images and text manually.so u can limit the contents that are to be listed..

  8. #8
    Super Contributor peterblazejewicz's Avatar
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699
    hi,

    I want to let the user see 'Images', 'SMS', 'Videos', 'Contacts'
    images/videos can be browser with FileConnection API (JSR-75)
    Contacts with PIM Api (JSR-75)
    SMS cannot be browsed at any means at least on Nokia devices yet,

    both FileConnection/PIM has optional filter features that can be used when listing content of data (folder/contact book),

    hth,
    regards,
    Peter

  9. #9
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi goglog,

    Peter is right, i missed the the "access to SMS" issue. You won't have access to SMS, the native SMS boxes are not available. However, you can access SMS in case you're not using the default port and have developed a SMS MIDlet to your overall solution, it depends on your requirement.

    BR,

    Juarez Junior

  10. #10
    Registered User jay_sholey's Avatar
    Join Date
    Jan 2005
    Location
    Ahmedabad, India
    Posts
    24
    Quote Originally Posted by juarezjunior
    Hi goglog,


    Take a look at the Java Networking tutorials and links below, just pick the right one and adapt it to your needs...

    http://forum.nokia.com/main/1,,1_0_10_8,00.html

    http://developers.sun.com/techtopics...es/#networking

    Hope it helps!

    BR,

    Juarez Junior
    The first link is not working anymore.
    Can you please provide another link which describes how to upload
    a file on the server.

    Thanks

  11. #11
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi jay_sholey,

    Here is the updated link to Networking - MIDP doc section.

    http://www.forum.nokia.com/main/reso...etworking.html

    BR,

    Juarez Jr

Similar Threads

  1. File Transfer Profile Service
    By adam24cz in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-08-30, 15:27
  2. file transfer (phone > server)?
    By nobodaddy in forum Python
    Replies: 1
    Last Post: 2005-08-18, 15:27
  3. mobile to pc file transfer
    By abhinav.golas in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-01-05, 12:27
  4. Replies: 0
    Last Post: 2002-11-19, 08:25
  5. Replies: 1
    Last Post: 2002-05-27, 03:59

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