When inlining a DataHandler as Base64, OMTextImpl doesn't stream the data
-------------------------------------------------------------------------
Key: WSCOMMONS-433
URL: https://issues.apache.org/jira/browse/WSCOMMONS-433
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Reporter: Andreas Veithen
Assignee: Andreas Veithen
Priority: Minor
Fix For: Axiom 1.2.9
When converting a DataHandler to Base64, OMTextImpl#writeOutput ends up calling
OMTextImpl#getText, meaning that Axiom will construct a single String from the
complete DataHandler content. For large contents this will inevitably lead to
out of memory errors. The correct strategy would be to stream the data, i.e. to
do the conversion in chunks and write several CHARACTER events to the
XmlStreamWriter.
Both LLOM's OMTextImpl and DOOM's TextImpl are affected by this problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.