Kamel-Media / Kamel

Kotlin asynchronous media loading and caching library for Compose.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a method to encode data in Base64 and display it as an image?

wangzhigang1112 opened this issue · comments

"Data encoded in Base64 can be displayed on the web using an img tag. Can KamelImage support this?"

There isn't out of the box, I'm not sure how much demand there would be for that feature. But you could you could implement your own fetcher to convert the base64 to bytes. You may also want to create an accompanying mapper as well for your source data type depending on your needs. Both would need to be added to your KamelConfig