N
N
Neonoviiwolf2018-03-20 16:52:26
Java
Neonoviiwolf, 2018-03-20 16:52:26

How to transfer image from byte[] server to Picasso?

Good
server gives byte[], how to get a picture for Picasso from this?
5ab11213d8856303181333.gif

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2018-03-20
@Neonoviiwolf

This is base64.
You must first download it using the custom handler https://futurestud.io/tutorials/picasso-custom-req... (you will have to go to the network yourself, use OkHttp.
Then you need to decode it https://docs.oracle.com/ javase/8/docs/api/java/uti...
And then BitmapFactory to create the final image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question