Does Google Apps Script support using base64-encoded images using the HTML service? I am trying to add images to an HTML page using base64 encoding, but they do not appear on the last page.
The HTML I'm trying to use is:
<img src="data:'+contentType+';base64,'+encoded+'"/>
When I register the html content just before it is rendered by the HTML service, it looks like:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUh.....(base64 string)/>
This works fine in JSFiddle and in plain HTML, but images are not displayed in Script applications. When viewing the source code on the displayed page, image tags look like this:
<img src="null">
Is there any other way to add base64 based images to the page? I can get images as blob, but I donโt think there is a way to directly add blob to HTML content.
source share