25 Feb
2008
25 Feb
'08
4:22 p.m.
Hi, On Feb 25, 2008, at 5:16 PM, Ngo Thi Hong Nga wrote:
Hi, how to add attachments using one of 2 methods: addAttachments(java.lang.String fieldName) and addAttachment(java.lang.String fileName, java.io.InputStream iStream) of com.xpn.xwiki.api.Document class ? I tried using them but don't know the right way to use. Please give me an example using these 2 methods.
See http://code.xwiki.org/xwiki/bin/view/Snippets/MindmapSitemapSnippet It's in groovy but the same API applies for Velocity. -Vincent