I have a proxy which accepts XML files with Base64 encoded files in it. For example the XML looks like:
Hello World
You have several options,
If file sizes are small, iterate through and for each attachment, decode using the script mediator and write to a file with syntax like,
If the files are large then it's more efficient to write your own class mediator