title: How to resize a base64 image to occupy less?
body: <p>I have an Bitmap image hat i convert to base64, but I want that the image to occupy less because I want to upload that image to a database and it needs to be less than a mb.</p>
  <pre><code> Convert from Bitmap to base 64:  
  
   ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
      imagen.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
      byte[] byteArray = byteArrayOutputStream.toByteArray();
  
      final String imagenPlanta = Base64.encodeToString(byteArray, Base64.DEFAULT);
  </code></pre>
  <p>Any help would be appreciated.</p>