In my xml-to-domain mapping i'm mapping a binary with the contents attribute. I would like to copy the filedocument by creating a new filedocument and copy the contents. How can I do that?
CommunityCommons module has a java action which copies a file document from one entity to another entity.
See community commons. DuplicateFileDocument
Chris de Gelder