title: Android convert base64 encoded string into image view
body: <p>I want to convert base64 encoded string into bitmap so i can put it in image view, but getting error like</p>
  
  <p>D/skia(7490): --- decoder->decode returned false and bitmap returns null value</p>
  
  <p>My code is:</p>
  
  <pre><code>byte[] imageAsBytes = Base64.decode(imageData);
  
  image.setImageBitmap(BitmapFactory.decodeByteArray(imageAsBytes, 0, imageAsBytes.length));
  </code></pre>