1
How to decrease a size of a Base64 without decreasing the quality so much? I’m trying a problem in this code,because it’s too big and it’s not saving in the bank. How to decrease ?
Bitmap thumbnail = (Bitmap) data.getExtras().get("data");
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
thumbnail.compress(Bitmap.CompressFormat.JPEG, 100, bytes);
byte[] b = bytes.toByteArray();
String encodedfile = Base64.encodeToString(b, Base64.DEFAULT);
base64p = encodedfile;
James the character
>
is to be used to quote something in the question, not to highlight all of its text. Try to use the quote only when necessary.– user28595
@Thiago Do you really need to save a Base64 in the database? It can’t be a BLOB?
– Marquezani