How do I turn a base64-encoded image into an Image...
# compose-android
m
How do I turn a base64-encoded image into an Image? On desktop I can do this through skia.Image and use .toComposeBitmap, but this also erroneously shows up in my shared android/desktop sourceset where these are not available. What should I do to get this working on both platforms? (On Compose Multiplatform 1.6.0)
m
Jetbrains official image viewer sample has an expect actual api that does this conversion, take a look and feel free to copy paste it https://github.com/JetBrains/compose-multiplatform/blob/master/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/ImageBitmap.common.kt