Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone ($4.99)

dotnetIQ ($4.99)

Your First iPhone App ($1.99)

iPocket Tools 9 in 1 ($0.99)

Catch-Me (Free)

Alien Strike ($0.99)

Historic Olympic Medal-Table ($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-12-2008, 11:16 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2008
Location: Philippines
Posts: 32
Default 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!
kbpajarito is offline   Reply With Quote
Old 10-13-2008, 12:13 AM   #2 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 211
Default

Install Air Sharing.
lapse is offline   Reply With Quote
Old 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
Default

Quote:
Originally Posted by kbpajarito View Post
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 )
Encryptic is offline   Reply With Quote
Old 10-13-2008, 12:29 AM   #4 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 50
Default

how would i sync with FTP?
Sammy Gabbay is offline   Reply With Quote
Old 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
Default

Quote:
Originally Posted by Sammy Gabbay View Post
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
Encryptic is offline   Reply With Quote
Old 10-13-2008, 12:46 AM   #6 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 50
Default

i wouldn't suppose there's documentation on this?
Sammy Gabbay is offline   Reply With Quote
Old 10-13-2008, 02:23 AM   #7 (permalink)
New Member
 
Join Date: Oct 2008
Posts: 6
Default 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
monstamac is offline   Reply With Quote
Old 10-13-2008, 03:55 AM   #8 (permalink)
Registered Member
 
Join Date: Sep 2008
Location: Philippines
Posts: 32
Default

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?
kbpajarito is offline   Reply With Quote
Old 10-13-2008, 04:05 AM   #9 (permalink)
New Member
 
Join Date: Oct 2008
Posts: 6
Default 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.
monstamac is offline   Reply With Quote
Old 10-13-2008, 09:47 AM   #10 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 76
Default

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
gagandeepb is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 21,502
Threads: 35,781
Posts: 156,768
Top Poster: smasher (2,449)
Welcome to our newest member, msu
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:30 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0