FS-Integration: get picture path from FirstSpirit
Author: atanasov_lyuben
Publication Date: 6/14/2011 10:57
Hello,
I am building a small JSP (see "get image.png") using FSI, which purpose is to display text data and an image file from FirstSpirit. There is no problem with the text data, as I use the text input field as explained in the documentation and it works perfectly:
<input type="text" class="textfield" name="<fsi:ref value='p.company.phone' />" value="<c:out value='${p.company.phone}'escapeXml='true' />" size="32" maxlength="32">
I couldn't find any information in the documentation about getting the path to blob files, though. What I try in the moment is:
<img src="${p.picture}" />
and I get the output:
<img src="<CMS_VALUE name="cs_picture" tag="FS_REFERENCE"><LANG id="§" set="1"><UID>preview</UID><UIDTYPE>MEDIASTORE_LEAF</UIDTYPE><REMOTE/></LANG></CMS_VALUE>" />
but it does not seem too work (picture field in the DB is defined as an XML type).
Thanks in advance.
Regards,
Lyuben Atanasov
Tags: fs-integration, image, jsp, path
Vous devez vous connecter pour laisser un commentaire.
Commentaires
0 commentaire