I have api that returns a response and one field is a base64string
how would you model it to be shown in the ui?
Usually I'd serialize the image to disc (cache folder), and just pass a path to UI, where
Coil
would pick it up.
However in this case, the images are sensitivy and cannot be serialized to disc (without encryption & for now I cannot be bothered)
Would you put a
Bitmap
into your viewmodel's state and emit it down to compose?
or just have some sort of string key in state to access a memory "cache" (
Map<String, Bitmap>
)
i.e. cache is being accessed statically inside the composable
TLDR; is passing