iPhone photo app communication with Rails server -



iPhone photo app communication with Rails server -

i building iphone app uploads/downloads photos rails server. how should transfer photos to/from rails server iphone? should utilize json? rails app supports restful architecture. pointers examples help.

i did similar, , suggest using asihttp on iphone side, communicating rails app.

here how utilize asihttp: http://allseeing-i.com/asihttprequest/how-to-use

pay special attending section "sending form post asiformdatarequest"

you can attach photos (or file, really) saying

[request setfile:@"photo.jpg" forkey:@"photo"]

then can access/manipulate on rails side through params

iphone ruby-on-rails json image

Comments

Popular posts from this blog

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -