image with json and iphone
- by alecnash
Hi, I've got some images saved inside a db in a server and want to use them for my iphone. I created a php file so I can access them with json, got some questions though.
I save all the text data from the db to a nsdictonary and it works fine.
For the images should I use nsdata?
Should I write a new php file for getting the image or is one enough because I am using an array to store my objects and then I use json_encode($arr) for json. Is it ok to store data to an array or is everything gonna crash?