title: Decode Image using Xamarin.Andoid to send it to web service
body: <p>I am developing an Android App using Xamarin Studio in order to capture a picture and then send it to a web service.</p>
  
  <p>The steps are:</p>
  
  <ol>
  <li>Capture the picture and store it on the phone.</li>
  <li>The web service receives an object as argument. This object contains the image in Base64. This is achieved in the following line:</li>
  </ol>
  
  <p><code>oImagenFace.ImagenDocumento =(string)Base64ToBitmapDrawableConverter.ConvertBack(BitmapFactory.DecodeFile (imagepath));</code></p>
  
  <p>At this point I am getting an <code>Out of Memory Exception</code>, but I can not resize the image (as explained here <a href="http://developer.android.com/training/displaying-bitmaps/load-bitmap.html" rel="nofollow">http://developer.android.com/training/displaying-bitmaps/load-bitmap.html</a>) because I need it with the original size. The images are about 200Kb.</p>