 |
 |
|
 |
10-12-2008, 11:16 PM
|
#1 (permalink)
|
|
Registered Member
Join Date: Sep 2008
Location: Philippines
Posts: 32
|
iPhone Syncing
My undergraduate project is an iPhone application that will sync files with a dekstop application. Any idea on how to sync files from an iPhone application to a desktop application? Thanks!
|
|
|
10-13-2008, 12:13 AM
|
#2 (permalink)
|
|
New Member
Join Date: Aug 2008
Posts: 211
|
Install Air Sharing.
|
|
|
10-13-2008, 12:13 AM
|
#3 (permalink)
|
|
Sleep Deprived Developer
iPhone Dev SDK Supporter
Join Date: Jul 2008
Location: NH
Age: 23
Posts: 68
|
Quote:
Originally Posted by kbpajarito
My undergraduate project is an iPhone application that will sync files with a dekstop application. Any idea on how to sync files from an iPhone application to a desktop application? Thanks!
|
You're going to have to use WiFi (or I suppose you could use the cellular network). Under the standard SDK you can't use the USB connection via iTunes. That said, your options are pretty open, you could use Bonjour and/or FTP.
Due to the limitations of the Apple SDK you will not be able to touch any files outside of your sandbox to sync, so this utility will be quite limited (No syncing your iTunes library  )
|
|
|
10-13-2008, 12:29 AM
|
#4 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 50
|
how would i sync with FTP?
|
|
|
10-13-2008, 12:42 AM
|
#5 (permalink)
|
|
Sleep Deprived Developer
iPhone Dev SDK Supporter
Join Date: Jul 2008
Location: NH
Age: 23
Posts: 68
|
Quote:
Originally Posted by Sammy Gabbay
how would i sync with FTP?
|
Use FTP as a protocol to push your data back and forth. You would basically need to have the PC act as a server and the phone would push up the newest data to it, then pull down the latest differences.
Not terribly efficient and has no real finesse... Perhaps use of WebDAV would be better.
Last edited by Encryptic; 10-13-2008 at 12:47 AM.
Reason: corrected typo
|
|
|
10-13-2008, 12:46 AM
|
#6 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 50
|
i wouldn't suppose there's documentation on this?
|
|
|
10-13-2008, 02:23 AM
|
#7 (permalink)
|
|
New Member
Join Date: Oct 2008
Posts: 6
|
Ftp Server Code Project
You are in luck, I've just posted the code to a small Ftp Server at
diddyftpserver - Google Code
You can embed this in an application and use it as a feature for uploading/downloading files to and from it.
Its under the LGPL which allows you to use it without opening up the source to the rest of your app. but means that if you make changes to the library, fixing bugs etc, you must make those changes available. In this way we can all benefit.
Hope its useful
|
|
|
10-13-2008, 03:55 AM
|
#8 (permalink)
|
|
Registered Member
Join Date: Sep 2008
Location: Philippines
Posts: 32
|
Thanks for your ideas. The application where iPhone application will be synced is a java desktop application. This application uses JavaDB while iPhone uses SQLite, right? Is it possible to sync files with these two?
|
|
|
10-13-2008, 04:05 AM
|
#9 (permalink)
|
|
New Member
Join Date: Oct 2008
Posts: 6
|
Syncing
To do something as specific as that you may need to look at something else. Make your own protocol and create a connection between the 2 apps.
Or you could customise the ftp protocol in the server, and add some new commands which handle the movement of data back and forth. Make some commands up such as Update Record, and supply a record number as a parameter and pass the record back as data.
Asyncsocket is a nice encapsulation of the CoreFoundation sockets layer. Take a look at that.
|
|
|
10-13-2008, 09:47 AM
|
#10 (permalink)
|
|
Registered Member
Join Date: Sep 2008
Posts: 76
|
I am synchronizing my local sqlite db with main server sql server 2005 db using webservice which is a wrapper on WCF(.NET).
I think u can synchronize data using webservice http get method.
Hope this will help
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 468 |
| 46 members and 422 guests |
| axeman, beancreative, billk, black666, BrianSlick, Chonch, ChrisJW, ColouredRobot, dany88, DaveHolzer, dhouse, d_CFO, ggalante, GhostDog, harrytheshark, iPhoneAppStudio, iPhoneDevelopment, javaconvert, jorgmart, josep@sixtemia.com, Kalimba, KenPletzer, lukeca, maiuridavide, marco.mussini75, Maximilian, mebarron, MiniRobinho, mquetel, msu, ng93, nibby, NicolasD, Noise, P2k, PeddlePower, raees, rarindeed, Sai Baba, shibq, Slum, svguerin3, tralhavet, warmi, ziconic, ZunePod |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,502
Threads: 35,781
Posts: 156,768
Top Poster: smasher (2,449)
|
| Welcome to our newest member, msu |
|