8

I would like to be able to capture an image (or choose an image from the photo library) and upload it to a remote server using Monotouch. I am not sure how to obtain and encode the image or how to upload the image and I am having difficulty finding relevant instructions. Can you help me get started? Thank you.

Bryan
  • 17,201
  • 24
  • 97
  • 123

2 Answers2

10

Here's a full example in MonoTouch

https://github.com/migueldeicaza/TweetStation/blob/master/TweetStation/UI/Camera.cs

Ian Vink
  • 66,960
  • 104
  • 341
  • 555
8

What you are looking for is the UIImagePickerController. Here is a screencast on how to use it in Monotouch.

Kris Erickson
  • 33,454
  • 26
  • 120
  • 175