How can I use binary data image?

Hello, I have to insert a blob image in my page.
How can I do that? I’ve tried to assign “dynamic image” and force like this:

<img dmx-bind:src="data:image/jpeg;base64,sc_datiazienda.data.query[0].qrcode">

It’s possibile to do that with Wappler?
Thanks

You can include a base64 encoded image, but you need to separate the static text from the dynamic data, eg:
<img dmx-bind:src="'data:image/jpeg;base64,'+sc_datiazienda.data.query[0].qrcode">
It’s easier to do this using the data picker, where you can enter the first part (static) and then select the dynamic part.

Thank you very much! :wink:

1 Like