Skip to content

How to get image component to point to file location #7320

Closed Answered by cmcclung-ANGENG
cmcclung-ANGENG asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cmcclung-ANGENG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant