Append filedocument to microflow generated xml

We're building an xml file with microflows. We're not using a domain to xml mapping. I want to append an image to the xml. I've retrieved the right image in my microflow. I think I need to create a base64 string which I could append to the xml. How can I create one in a microflow? Edit: Just saw that the image entity has already a BASE64 string as an attribute. I think someone created the image in Mendix based on the Base64 string and save this string as an attribute. So I will add this string to my xml. Thanks anyway.
1 answers

You need an java action for that. Base64.encode can transform, as the name suggests ;-), a byte array to a base64 encoded string.