Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($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 07-18-2011, 04:31 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 32
mr curious is on a distinguished road
Default Save information from web, database

Hey all,

I'm quite new to the iphone Dev. I've been doing some tutorials and going through some books but I want to create an app that can retrieve data (say images for example) from the web (from a database) onto the iphone.

Any books or tutorials to point me to?

Thanks
mc
mr curious is offline   Reply With Quote
Old 07-18-2011, 05:12 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

http://www.iphonedevsdk.com/forum/ip...tml#post344734

Basically: You need a script server side (php is nice) that take info on your remote database (mysql for example), and give output in xml or json, then you can make a http request with ASIHTTPRequest or NSURLConnection from your iOS app to retrieve the output of the script, and then you can parse it with SBJon (for json) or NSXMLParser (for xml).
Google terms that you don't know
__________________

Last edited by dany_dev; 07-18-2011 at 05:15 AM.
dany_dev is offline   Reply With Quote
Old 07-18-2011, 05:43 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 32
mr curious is on a distinguished road
Default

Quote:
Originally Posted by dany_dev View Post
http://www.iphonedevsdk.com/forum/ip...tml#post344734

Basically: You need a script server side (php is nice) that take info on your remote database (mysql for example), and give output in xml or json, then you can make a http request with ASIHTTPRequest or NSURLConnection from your iOS app to retrieve the output of the script, and then you can parse it with SBJon (for json) or NSXMLParser (for xml).
Google terms that you don't know
Thanks.
Just to clear things up. There's a whole lot of images stored on a server. I want to make an app that allows the user to download those images onto their iphone.
I understood most of what you said, just confused about the first part.
Quote:
You need a script server side (php is nice) that take info on your remote database (mysql for example) and give output in xml or json
where would this sit in terms of someone running the app and downloading an image?
could you maybe break what you said down into more steps?

Thanks
mc
mr curious is offline   Reply With Quote
Old 07-18-2011, 05:43 AM   #4 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 3
siem is on a distinguished road
Smile

*****

Last edited by Rhade; 07-18-2011 at 06:11 AM.
siem is offline   Reply With Quote
Old 07-18-2011, 06:12 AM   #5 (permalink)
Super Moderator
 
Join Date: Jan 2011
Posts: 434
Rhade is on a distinguished road
Default

Quote:
Originally Posted by siem View Post
*****
We frown on links to pirated stuff around here. If you are too cheap to pay for what you take from the community, then the community isn't going to do too much to help you when you need it.
Rhade is offline   Reply With Quote
Old 07-18-2011, 06:19 AM   #6 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 32
mr curious is on a distinguished road
Default

Quote:
Originally Posted by Rhade View Post
We frown on links to pirated stuff around here. If you are too cheap to pay for what you take from the community, then the community isn't going to do too much to help you when you need it.
Sorry about that,
I wasn't implying that I am going to download them. just wanted to know which books he recommended.

mc
mr curious is offline   Reply With Quote
Old 07-18-2011, 06:32 AM   #7 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

Quote:
Originally Posted by mr curious View Post
I understood most of what you said, just confused about the first part.

where would this sit in terms of someone running the app and downloading an image?
could you maybe break what you said down into more steps?

Thanks
mc
1-app start
2-app do a http request to your php script, that give an xml with all links to your image
3-you download the images and display these.

clear enough?.

The php script will work as a bridge from your remote database and iOS app.
__________________
dany_dev is offline   Reply With Quote
Old 07-18-2011, 06:37 AM   #8 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 32
mr curious is on a distinguished road
Default

Quote:
Originally Posted by dany_dev View Post
1-app start
2-app do a http request to your php script, that give an xml with all links to your image
3-you download the images and display these.

clear enough?.

The php script will work as a bridge from your remote database and iOS app.
awesome!
Last thing? any books or tutorials.

Thanks
mc
mr curious is offline   Reply With Quote
Old 07-18-2011, 08:10 AM   #9 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

as a general book, i like jeff la marche, so
Beginning iPhone 4 Development: Exploring the iOS SDK

but i don't know a particular tutorial to do what you want, however are just few things, maybe can be usefull read that WebService [How-To] in particular section 4, 5, 6.
__________________
dany_dev is offline   Reply With Quote
Old 07-18-2011, 08:42 AM   #10 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 32
mr curious is on a distinguished road
Default

Quote:
Originally Posted by dany_dev View Post
as a general book, i like jeff la marche, so
Beginning iPhone 4 Development: Exploring the iOS SDK

but i don't know a particular tutorial to do what you want, however are just few things, maybe can be usefull read that WebService [How-To] in particular section 4, 5, 6.
Thanks for the links. I've gone through that book.
The link to your other posts were quite confusing. What I'm looking for is something that explains the code.

Thanks for your help anyway
mc
mr curious is offline   Reply With Quote
Old 07-18-2011, 08:42 AM   #11 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 1,106
Meredi86 is on a distinguished road
Default

+1 for Danys book selection
Meredi86 is offline   Reply With Quote
Reply

Bookmarks

Tags
database, save information, web

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
» Online Users: 411
15 members and 396 guests
blasterbr, buggen, Clouds, dre, EvilElf, HemiMG, jeroenkeij, jimmyon122, jonathandeknudt, LEARN2MAKE, Mah6447, n00b, nyoe, pungs, stanny
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,668
Threads: 94,121
Posts: 402,901
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jonathandeknudt
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:56 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0