title: How to convert a Base64 string into a Bitmap image to show it in a ImageView?
body: <p>I have a Base64 String that represents a BitMap image.</p>
  
  <p>I need to transform that String into a BitMap image again to use it on a ImageView in my Android app</p>
  
  <p>How to do it?</p>
  
  <p>This is the code that I use to transform the image into the base64 String: </p>
  
  <pre><code>//proceso de transformar la imagen BitMap en un String:
  //android:src="c:\logo.png"
  Resources r = this.getResources();
  Bitmap bm = BitmapFactory.decodeResource(r, R.drawable.logo);
  ByteArrayOutputStream baos = new ByteArrayOutputStream();  
  bm.compress(Bitmap.CompressFormat.PNG, 100, baos); //bm is the bitmap object   
  byte[] b = baos.toByteArray();
  //String encodedImage = Base64.encode(b, Base64.DEFAULT);
  encodedImage = Base64.encodeBytes(b);
  </code></pre>