Template Engine language reference > Composition Center interface > Document definition functions > toBase64()

toBase64()
This document definition function embeds image resources as base64 encoded data in HTML output.
Example 50
Template
<p>MyImage</p>
<img src="data:image/pjpeg;base64,$docdef.S1.Im1.toBase64()">
Output
<p>MyImage</p>
<img src="data:image/pjpeg;base64,/9j/4A...t/1f5uv//Z">
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26