Mobile Application copying files to PC
-
Has anyone ever copied a file using C# to a PC from a Mobile Application? I've seen many discussions where a Desktop Application grabs a file from a mobile device but not where the Mobile Application just sends a file to the Desktop PC. I have a project where the user counts inventory on a handheld device but they want to store that data on a database elsewhere...so what I need to do is when the user clicks "SyncData" on the mobile device it generates a comma-delimeted file on the Mobile Application and then sends the file to a specific location on the connected PC. This button can only be clicked when the Handheld is docked and connected. Is this possible? Thanks
Jerami Tainter Computer Programmer jtainter@gmail.com
-
Has anyone ever copied a file using C# to a PC from a Mobile Application? I've seen many discussions where a Desktop Application grabs a file from a mobile device but not where the Mobile Application just sends a file to the Desktop PC. I have a project where the user counts inventory on a handheld device but they want to store that data on a database elsewhere...so what I need to do is when the user clicks "SyncData" on the mobile device it generates a comma-delimeted file on the Mobile Application and then sends the file to a specific location on the connected PC. This button can only be clicked when the Handheld is docked and connected. Is this possible? Thanks
Jerami Tainter Computer Programmer jtainter@gmail.com
I don't know how to upload a file through ActiveSync connection directly, but one possibility is to implement a webservice on a server in your clients network and upload your data to the database via this service. You can call it from a device not only via ActiveSync connection, but using Wifi or GSM connection your device may have. Other possibilities are using SQL Server Compact on the device with merge replication to a SQL Server databese, or maybe the new Sync framework from Microsoft.
Pavel
-
Has anyone ever copied a file using C# to a PC from a Mobile Application? I've seen many discussions where a Desktop Application grabs a file from a mobile device but not where the Mobile Application just sends a file to the Desktop PC. I have a project where the user counts inventory on a handheld device but they want to store that data on a database elsewhere...so what I need to do is when the user clicks "SyncData" on the mobile device it generates a comma-delimeted file on the Mobile Application and then sends the file to a specific location on the connected PC. This button can only be clicked when the Handheld is docked and connected. Is this possible? Thanks
Jerami Tainter Computer Programmer jtainter@gmail.com
Hi, You can use either rapi.dll functions or can create a file on mobile device and then copy it to pc via activesync dlls again. Second one is much more easier but you can run out of memory if your file is big. If you do not have to create a csv, direct accessing to sql server(or whatever dbms u use) will be a better choice( Of course it depends on your project ). Sincerely
-
Has anyone ever copied a file using C# to a PC from a Mobile Application? I've seen many discussions where a Desktop Application grabs a file from a mobile device but not where the Mobile Application just sends a file to the Desktop PC. I have a project where the user counts inventory on a handheld device but they want to store that data on a database elsewhere...so what I need to do is when the user clicks "SyncData" on the mobile device it generates a comma-delimeted file on the Mobile Application and then sends the file to a specific location on the connected PC. This button can only be clicked when the Handheld is docked and connected. Is this possible? Thanks
Jerami Tainter Computer Programmer jtainter@gmail.com
Yes, rapi is one option. You can see many examples of how to do it through it. Other method that I prefer is if you have wi-fi to connect to the PC or access point. After that you can use the sharing capabilities of the network (like regular network of PCs)