Thanks for the explanation, but what am doing is I am enquiring information from oracle database and the images are stored as BLOB.
But I store these BLOB to a byte array, then I display the output as an XML. What I want to know how to display the bit array.
By the way, what is the DSP?
XSLT will allow you to "package" the binary data into another format, but I don't think you will be able to serve this data to a web client as an image without persisting it into a file first and referring the client to retrieve it through a URL.
I would like to know how you resolved this problem as a matter of interest. I would save the image into a file and insert the URL pointing to that file inside the HTML page you are generating using your XSLT stylesheet.
I solved the problem
My xml element type is base64Binary.
This is what I did using xslt:
<xsl:variable name="photo" select="Element/Photo"/>
<img src="data:image/jpg;base64,{$photo}" />
Regards
Ameer
The Following 2 Users Say Thank You to alamir2020 For This Useful Post: