File transfer sample code

jamose

Member
Joined
Feb 3, 2006
Messages
8
Programming Experience
1-3
Hi,
I need to transfer a file from a PDA to a PC. Its basically a text file. Anyone with a simple code to transfer a file from a pda to a pc?

Cheers!!:)
 
how is the pda connected to the pc? usb cable (drive letter in "My Computer" on the pc) or through network, etc...
 
if you want to send a file from your pda to the pc using the pda you will need to use FTP (using wininet.dll thats exists on the pda) and you'll need to have an FTP server on your pc.

you can do it over a webservice too, i have never done it but i think you can break the file down and send it over http

you can send it through bluetooth using classes provided by http://32feet.net which provides free bluetooth libraries. I've have used this before for sending files between 2 devices using bluetooth

the other option you can have is to utilise activesync.
www.opennetcf.org (opensource compact framework community) have a library which you can use on desktop .net to listen to the activesync events. Using this you can listen for activesync to become active and then copy files from the device to the pc.
 
Back
Top