views:

66

answers:

1

Hi Guys,

Does anyone have any idea how can I save/upload a photo from iphone application via http?

Thanks

A: 

Through the SDK available, you'd need to go through the UIImagePicker control to select a photo, convert it to NSData, apply the appropriate encoding and the perform the HTTP post.

Here's a code snipper showing how to use the UIImagePicker control:

http://www.ikangai.com/blog/development/code-snippet-of-the-week-uiimagepicker

Mark Mayo
Good starting point. I'll give it a try when I get home.
Leo
Also have a read of:http://stackoverflow.com/questions/128378/upload-photo-to-arbitrary-ftp-with-iphone-appandhttp://stackoverflow.com/questions/2482082/iphoneupload-photo-to-flickr
Mark Mayo