How to get image component to point to file location #7320
-
Hi, I'm running on docker and wondering how to use the image component to display a file from within the docker container. I have file:///ex.png but it's not displaying. I've got the file in To try and get it to pick up |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've discovered a way to do it. You can create a db table to store the file in base64 format. Then create a tooljet db query to get the image. So the url property might look like image_logo = query name https://docs.tooljet.com/docs/how-to/loading-image-pdf-from-db |
Beta Was this translation helpful? Give feedback.
I've discovered a way to do it.
You can create a db table to store the file in base64 format.
Then create a tooljet db query to get the image.
So the url property might look like
{{'data:image/jpeg;base64,' + queries.image_logo.data[0].image_data}}
image_logo = query name
data[0] = first row returned
image_data =col
https://docs.tooljet.com/docs/how-to/loading-image-pdf-from-db