Ok, it turns out that this third party component that I'm working with stores the email attachment in a string property (it's already decoded).
How do I save this file now?
It has: filename, encodingtype and string representation of the file.
source
to share