3

I could convert the base64 string to android.graphics.Bitmap but from all I can find online, I still need coil or glide to display it

nwagu
  • 532
  • 3
  • 17

1 Answers1

4

If you have a Bitmap you can use the .asImageBitmap() extension to get a Compose ImageBitmap object.

Then use it in an Image composable.

Image(
    bitmap = bitmap.asImageBitmap(),
    contentDescription = "contentDescription"
)
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841