You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Michael Rudolf <mi...@t-online.de> on 2005/11/16 01:09:26 UTC

Transformation Output to byte[]

Hi,
I would like to write the output of a transformation with xalan into an 
byte[]. The resulting document is no XML document so the DOMResult 
doesnt work. Any ideas on how to do this?
Thanks a lot!
Michael


Re: Transformation Output to byte[]

Posted by Michael Rudolf <mi...@t-online.de>.
Thx...that did it ;-)

>Wrap a StreamResult around a ByteArrayOutputStream and transform into that.
>
>______________________________________
>Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
>"The world changed profoundly and unpredictably the day Tim Berners Lee
>got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
>
>
>
>  
>


Re: Transformation Output to byte[]

Posted by Joseph Kesselman <ke...@us.ibm.com>.
Wrap a StreamResult around a ByteArrayOutputStream and transform into that.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk