How To Read A Embedded Image From Xml File With Xsl
I have a image embedded in a XML file (no the path, the image bits). Image pixels encoded in 64  then my question is if it is possible make a transformati  
Solution 1:
These days browsers have good support for data URLs so you can use e.g.
<xsl:templatematch="image"><imgsrc="data:image/gif;base64,{.}"/></xsl:template>if your XML image element(s) contain GIF image data. You need to adapt the MIME type obviously if you have PNG or JPEG images for instance.
Post a Comment for "How To Read A Embedded Image From Xml File With Xsl"