[android] don't ever load an entire image into memory

This happens on API 27+28 if loading TIFF or WebP files.
Using an InputStream with a read limit prevents this.
parent d3b6f484
Pipeline #2910 passed with stage
in 10 minutes and 56 seconds