title: java.lang.IllegalArgumentException: bad base-64 when decrypting image
body: <p>I am selecting an image using Jsoup parser</p>
  
  <pre><code>Elements images = document.select("img");
  String src = images.attr("src");
  </code></pre>
  
  <p>then using this code to get rid off <code>data:image/jpg;base64</code></p>
  
  <pre><code>pureImageSrc = imageSrc.substring(imageSrc.indexOf(",") + 1);
  </code></pre>
  
  <p>Now I have correct base 64 string (i guess) which starts and ends like</p>
  
  <pre><code>/9j/4AAQSkZJRgABAQEASABIAAD/4Vl6RXhpZgAAT...............lbRIluL+9/56L+VFOoqhH/2Q==
  </code></pre>
  
  <p>finally, I am decoding it and setting inside an image view</p>
  
  <pre><code>byte[] decodedString = Base64.decode(pureImageSrc, Base64.URL_SAFE);
  Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);
  imageView.setImageBitmap(decodedByte);
  </code></pre>
  
  <p>But getting this exception: <code>java.lang.IllegalArgumentException: bad base-64</code>
  What's missing in this?</p>