Pushing out of iOS is insanely trivial. All you're doing is getting access to the image and submitting it as NSData
in the HTTP
body. I'd recommend using AFNetworking
if you're new as it's pretty quick to pick up for your networking needs.
Your main commands for submitting out of iOS using AFNetworking
are
NSData *imageToUpload = UIImageJPEGRepresentation(imageToUpload, 1.0);
and
NSMutableURLRequest *request = [[AFNetworkingClient] multipartFormRequestWithMethod:@"POST" path:@"YourURLPath" parameters:AnyParametersYouHaveInADictionaryFormat constructingBodyWithBlock: ^(id <AFMultipartFormData>formData) {
[formData appendPartWithFileData: imageToUpload name:@"image" fileName:@"temp.jpeg" mimeType:@"image/jpeg"];
}];
That's pretty much it. For a full answer that I took these snippets from, click here.
If you would rather not use AFNetworking
, then here or here may also be good places to look. Please try to do some of your own research before asking 'is it trivial' next time. StackOverflow is meant for asking specific technical questions, not general open-answered questions (i.e. is it trivial or what language should I implement the server-side in).
As for your server, that really depends on your skills, interests, and what you have access to. It's like asking us how you want to cook your dinner. Any language that can accept HTTP request with an image and run imagemagick will work. I have a preference towards rails just because I like the language more and I think that more people are learning it than PHP (which means more candidates to fix/maintain/enhance it in the future).