Description
If XMLStreamReaderUtils#getDataHandlerReader is used on an XMLStreamReader from a coalescing parser (either directly or indirectly via OMContainer#getStreamReaderWithoutCaching()), then the method will use XMLStreamReader#getText(), which means that the entire base64 encoded content will be read into memory before being decoded. However, the Woodstox specific XMLStreamReader2#getText(Reader, boolean) API could be used to avoid this. This can be achieved easily by leveraging the org.apache.axiom.ext.stax.CharacterDataReader API and the StAX dialect framework.