ws-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (WSCOMMONS-433) When inlining a DataHandler as Base64, OMTextImpl doesn't stream the data
Date Sun, 12 Jul 2009 19:05:14 GMT

     [ https://issues.apache.org/jira/browse/WSCOMMONS-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Veithen resolved WSCOMMONS-433.
---------------------------------------

    Resolution: Fixed

> 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.


Mime
View raw message