How to submit photo via http from iphone application
Does any开发者_如何学编程one have any idea how can I save/upload a photo from iphone application via http?
Thanks
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
精彩评论