Skip to content

Loading of images, exposing of image content variables #4857

Answered by withshubh
tensulin asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Timo - You can use data:image/jpeg;base64, for the images, and data: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:

data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjYzN3B4IiBoZWlnaHQ9IjEyOHB4IiB2aWV3Qm94PSIwIDAgNjM3IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4NCiAgICA8dGl0bGU+bG9nbzwvdGl0bGU+DQogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAg…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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