i have a String with bytes as hex (an jpeg or png ...
# compose-desktop
z
i have a String with bytes as hex (an jpeg or png file as hexbyte data), and i want to convert that into an image and display it. how can i do that easily?
a
Convert it to a byte array, wrap it in a
ByteArrayInputStream
and then use
loadImageBitmap
👍 1
👍🏻 1
z
thanks that worked super