-
Hi all, I want to load an image or PDF file from a database and display it. However, the corresponding for those components are not exposed for setting them programmatically. Is there a plugin which allows me to do this or is there a way that I can set an image or PDF file in tooljet? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @tensulin - Which datasource are you using? |
Beta Was this translation helpful? Give feedback.
-
Hey Timo - You can use Example for image:
Example for PDF:
PS: This is a copy of our conversation in Slack community |
Beta Was this translation helpful? Give feedback.
Hey Timo - You can use
data:image/jpeg;base64,
for the images, anddata:image/png;base64,
for pdf followed by the base64 data. You can also transformations to add this to the base64 data and then display the image/pdf on the respective components.Example for image: