I need to load a bitmap, i.e. in the file system, into an array of bytes in order to load it, but it should be:
- Changed to 500x500 and in bytes [].
- Asynchronous
I can do it with a slip
Glide.with(context) .load("/user/profile/photo/path") .asBitmap() .toBytes() .centerCrop() .into(new SimpleTarget<byte[]>(250, 250) { @Override public void onResourceReady(byte[] data, GlideAnimation anim) {
but I donβt want to include it just for that. Any way to do this with picasso?
source share