Yes, you can do this by mapping the
Contents attribute (which has the Mendix type
Binary) of your
FileDocument object to an XML entity of type
xsd:base64Binary (and vice versa).
It's just like any other mapping. You have an entity that you want to map to some xml. Only this xml has an attribute of type
xsd:base64Binary. If we choose a
FileDocument (or an entity that inherits from
FileDocument) an extra attribute shows up in the mapping screen, namely
Contents. Select this attribute for the xml element of type
base64Binary and you're done. The contents of the
FileDocument will be translated to that xml element.
Could anyone tell me in details how can I do this mapping?
I have a published WS which returns an object with a list of documents related to it