Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Mobile Application copying files to PC

Mobile Application copying files to PC

Scheduled Pinned Locked Moved Mobile
csharpdatabasecomquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tainter
    wrote on last edited by
    #1

    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

    P A A 3 Replies Last reply
    0
    • T Tainter

      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

      P Offline
      P Offline
      Pavel Klocek
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • T Tainter

        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

        A Offline
        A Offline
        AbbaonFatTracks
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • T Tainter

          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

          A Offline
          A Offline
          akirilov
          wrote on last edited by
          #4

          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)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups