Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67497

Display image in HTML(base64) using XSLT

$
0
0

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>

Viewing all articles
Browse latest Browse all 67497

Trending Articles