Kamel-Media / Kamel

Kotlin asynchronous media loading and caching library for Compose.
Apache License 2.0
592 stars 23 forks source link

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

Closed wangzhigang1112 closed 1 month ago

wangzhigang1112 commented 10 months ago

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

luca992 commented 8 months ago

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