title: Caused by: java.lang.IllegalArgumentException: bad base-64
body: <p>I upload encoded String image on image view but I got                            </p>
  
  <blockquote>
    <p>Caused by: java.lang.IllegalArgumentException: bad base-64 error.</p>
  </blockquote>
  
  <pre><code>byte[] decodedString = Base64.decode(value, Base64.DEFAULT);
  Bitmap bitmap = BitmapFactory.decodeByteArray(decodedString, 0,decodedString.length);
  dashboard_img.setImageBitmap(bitmap);
  dashboard_img.invalidate();
  </code></pre>
  
  <p><code>Base64.URL_SAFE</code> also not working for base 64 error.</p>