Paul Sandoz wrote:
> Hi Vivek,
>
> Were you asking if an XML stream buffer can buffer binary data directly?
>
Yes, thats what I thought using it would be straight forward but was not
sure how I could get it from the XML stream buffer.
> Currently the answer is no, but some time in the future it would be
> good to extend it so that when creating a buffer from MTOM or FI it
> can store binary data.
That will be good.
-vivek.
>
> Paul.
>
> Paul Sandoz wrote:
>> Vivek Pandey wrote:
>>
>>> I am trying to implement XMLStreamReaderEx.getPCData() to
>>> de-reference the xop refererences by base64 encoding the binary
>>> attachments.
>>>
>>> I am trying to use XMLStreamBuffer for this purpose, following is
>>> the code:
>>>
>>> XMLStreamReader xmlreader =
>>> XMLStreamReaderFactory.createXMLStreamReader(is, true);
>>> XMLStreamBuffer sb = new XMLStreamBuffer();
>>> sb.createFromXMLStreamReader(xmlreader);
>>> reader= sb.processUsingStreamReaderBufferProcessor();
>>>
>>> I use the reader in getPCData(). Would you know whats the best way
>>> to transform the underlying xml infoset stream into byte stream
>>> while resolving xop reverefences - is the only way out is SAX or
>>> something else?
>>>
>>
>> I am missing the bigger picture here so I do not understand why you
>> need to buffer the XML attachment part.
>>
>
>
--
Vivek Pandey
Web Services Standards and Technologies
Sun Microsystems Inc.