Originally, I had a table in SQL Server with a field that contained an URL to a picture.
I created an XSL template to customize the info window of that table in ArcMap. To show that image I only had to do this:
<xsl:variable name="pic" select="$theField[FieldName='PIC']/FieldValue"/>
<img border="0" src="{$pic}" width="200"/>
Now, the picture is stored as a blob in the database. A VARBINARY
field.
How can I set the <img>
tag from a blob source?
I've been reading several answers for similar issues here and here, but they don't fit my case or I'm being incapable of doing it.
Is even possible to accomplish it with just an XSL template?
I have already tried this (and similar variations):
<fo:instream-foreign-object content-type="image/png">
<xsl:variable name="pic" select="$theField[FieldName='PIC']/FieldValue"/>
<img border="0" src="{$pic}" width="200"/>
</fo:instream-foreign-object>