×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    20

    Sending file to PC?

    Hi, after searching this forum as well as google I am still a bit lost. I have a J2Me application which acquires some data (user input) over time. I'ld like to enable it to send this data to a PC as a plain text file (csv). Of course there's always the possibility of sending it via the network using http or even smtp (sending the user the file as an email).
    However, I'ld like to offer a free-of-charge solution.
    My questions:
    * Is there any sample code for sending a text file from the phone to the PC via BlueTooth? I can create a handwritten solution using a serial BT communication and a dedicated PC software. However, I would prefer to use the standard PC capabilities for receiving BT data if that is possible.
    * Is there any way to create a file from the J2Me application in the phone's memory which can be browsed and transferred over the PC suite? In other words, which location would the file need to be at and is the Midlet authorized to put it there?
    * Are there any easyer ways to accomplish the same thing? I could imagine that I am not the only one wanting to store application data on a PC.

    Thanks and regards
    Roland

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: Sending file to PC?

    standard communication is usually about obex and i'm afraid obex is not present on most of the implementations of jsr 82, so you'll probbly have to do it yourself in spp

    to read files in the phone, you need jsr75-FILE, so make sure your phone has this capability.

    however, if you aquire data from the user input in the midlet, you don't need files. you can store data in the RMS if you need persistent storage.

    here : http://fivedots.coe.psu.ac.th/~ad/jg/
    you can find an exemple of a simple client/server app in bt.
    you can modify it to store the data you receive on the server on the harddrive

Similar Threads

  1. sending JPEg file via Bluetooth
    By ja_calulot in forum Symbian
    Replies: 14
    Last Post: 2006-02-08, 11:06
  2. Delete a file after bluetooth sending
    By cqq in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-07-24, 05:27
  3. Help me about sending sis file with MMS
    By msudan in forum Symbian
    Replies: 9
    Last Post: 2005-05-10, 08:25
  4. Sending a File to a Server
    By Fencer04 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-12-04, 15:10
  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
  •  
×