Writing files and sending to desktop?

Discussion in 'iOS Programming' started by kage777, Jan 4, 2010.

  1. kage777 macrumors newbie

    Feb 24, 2008
    I have another question for someone with more knowledge than myself (which is pretty much everyone I think).

    I am trying to build an app that as the last step it would write a file (csv file) and then place it in a shared folder on a windows machine to have access to it.

    I am pretty confident the writing shouldn't be too bad to figure out, but the getting it off of the iphone is something I'm concerned about.

    Is this possible, or am I trying to do something that can't be done.

    thanks for any suggestions
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Yes although it's not going to be at all easy. Apps can do it but there is not a convenient API (that I am aware of) for doing this: you would need to find a way to mount the share into the filesystem.
  3. KoolStar macrumors demi-god


    Oct 16, 2006
    If you are going to be movie files to a server, consider using JSON to send the data to a php webservice or php script that can write the file on the server.
  4. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    If you're running a web server on the Windows computer you can POST the file to a script on the server. Google web server file upload for details of how this works.

    If you are running an embedded web server on the device you can serve the file from your app. This would be a manual process where the user connects to your device with a web browser from the desktop computer and downloads the file from there.

    You can also easily email a file from your app and include it as an attachment.

Share This Page