www.webdeveloper.com
Results 1 to 3 of 3

Thread: Transfering .csv from application to server

  1. #1
    Join Date
    Apr 2007
    Posts
    98

    Transfering .csv from application to server

    Hi

    I have an application that runs on a users machine (i.e. they download it and install locally). The application generates a .csv/.txt file which I would then like to be "sent" to my web server so I can display it on the website.

    What would be the best way to send the file from the application to the server

    Someone suggested using an IP and socket number?? Not sure where I would start with that though? For reference I use shared hosting..

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,321
    Do you want the desktop app to do this automatically? If that's not required, you could just make a web form that has a file-type input field, and point the form's action to a script on that server that will accept the file and process it as desired.

    If you do want the desktop app to handle it, then it depends on what functionality is available to that app's programming language/environment. If it can process cURL requests, that would be a fairly simple way to submit the file in the same manner as the HTML form described above would do it.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Apr 2007
    Posts
    98
    Thanks for the reply.

    If the application were required to send data every second to my server would this also be the best way? My app captures stats and I would like them to be displayed on a webpage every second.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles