title: monotouch: WriteImageToSavedPhotosAlbum problems saving from camera
body: <p>Please see gist here: <a href="https://gist.github.com/1387224" rel="nofollow">https://gist.github.com/1387224</a></p>
  
  <p>Essentially, I'm trying to save a photo from the <code>AVCaptureSession</code>, I'm grabbing the output from an <code>AVCaptureStillImageOutput</code>, converting it into a UIImage and trying to send it to the <code>WriteImageToSavedPhotosAlbum</code> method on <code>ALAssetLibrary</code>.</p>
  
  <p>The reason for doing this is so I can grab the asset url once it's been saved (<code>UIImage.SaveToPhotosAlbum</code> works fine but doesn't let me extract the filename created)</p>
  
  <p>The method is throwing an error </p>
  
  <blockquote>
    <p>Failed to encode image for saved photos. </p>
  </blockquote>
  
  <p>Does anyone know how to fix this?
  I also looked at passing the raw <code>NSData</code> jpeg stream from the <code>AVCaptureStillImageOutput</code> but can't work out how to get the metadata <code>NSDictionary</code> to pass through.</p>
  
  <p>Many Thanks</p>