Jump to content
  • 0

Show base64 images on results (list) page


DKO7005

Question

Hello everyone!

now that I found out how to enable a rich text editor in the submission form and paste images alongside text, I am struggling to display the images. Caspio automatically encodes them as base64 image, and automatically creates the necessary <img> with proper syntax. However, none of three tested browsers (nighlty 52.0a1, chrome 60.0 and IE 11) show the pictures. IE shows at least a "broken image" icon and if I analyze the icon - it shows that the beginning tag <img src="data:image/png;base64 is replaced by unsafe:image/png;base64

How to prevent that?

Strangely, if I save the "data:image/png;base64" and the rest of code behind it, and display it in an html block that goes like <img src=[field:mybase64image] /> then the image is shown fine. Does it have something to do with how Caspio displays the html content? Is there a solution for this?

Edited by DKO7005
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...