Hi, One solution you have is to use the data URI scheme to and write the image data stream right into the HTML. Check out http://en.wikipedia.org/wiki/Data_URI_scheme#HTML Or alternatively you could create a temporary file, and serve this image as I believe the charting plugin does. Cheers, Jerome On Wed, Jun 27, 2012 at 5:56 PM, David Delbecq <david.delbecq@meteo.be>wrote:
Hello,
i have a groovy script that generates an xwiki table from an LDAP nodes listing. In the node is a picture (jpeg as a byte[]), and i wonder how i can display this byte[] as a picture. I tried to understand how charting plugin does this job (have template generate a picture that is later queried by browser) but i didn't understand the principle.
Can someone explain me how to do this?
David Delbecq
_______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Jérôme Velociter Winesquare http://www.winesquare.net/