Compression of small images throws exception
When sending images on Android 10 (did not test other versions) smaller than 32KB, the app shows an error and an IOException
is thrown.
if (!bitmap.compress(JPEG, quality, out))
throw new IOException();
Sending images larger than 32 KB works just fine.