I am trying to display an JPG image in HTMl after conversion to base64. This operation I am trying in XSLT code. Couple of options I tried with concat and write-binary, but none of them seem to be working. Is this supported using XSLT? Is there any built-in function available?
<img>
<xsl:attribute name="src">
<!--xsl:value-of select="concat('data:image/gif;base64,',xPath)"/-->
<xsl:value-of select="file:write-binary(C:\MyDesktop\Desktop\allImages\download.jpg, xs:base64Binary(string()))"/>
</xsl:attribute>
</img>