Domain to xml string

I have an XML webservice that needs XML data as an argument. I created a DomainToXML mapping to put the XML in a FileDocument. The data is now available as a binary. Now I'd like to convert the binary to a string, so I can use it as an argument for my webservice, but I'm not able convert a binary to a string. How do I put my domaindata in a (XML) string? Do I need Java for the conversion (example code)? Are there other ways to send my data to the webservice without changing the webservice?
1 answers

Probably it is encoded as Base64. See Community commons module (Appstore) for java-actions that converts back and forth.