I have seen several questions on how to encode an image file in base64, but how about the other way around - how do I reconstitute a picture from a base64 string stored in a
There is a better method available since Saxon 9.5 via the EXPath File extension module (available in Saxon-PE and Saxon-EE).
Here is a fragment of the code I'm using to extract binary image files from Word documents (source XML is in WordProcessingML format):