RE: Decoding base64Binary

Posted by Taras Bahnyuk on
URL: https://discuss.orbeon.com/Decoding-base64Binary-tp25132p25136.html

You are not alone,

just see my posts and post from Boon Low.
We don't know how to do anything else with the imported data but stream
it.
And we need help on that.
Welcome to the club.

Cheers,
Taras

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]
Sent: woensdag 31 augustus 2005 13:44
To: [hidden email]
Subject: [ops-users] Decoding base64Binary

I'm calling a web service (SOAP), and the results are returned as
base64Binary.

The results are actually an XML document (this is being encoded by the
web service and returned as a base64Binary stream).

I want to decode the base64Binary data back into an XML document so I
can process it.

I've tried using the oxf:xml-converter, but with no joy.

For example:
==========
    <p:processor name="oxf:xml-converter">
        <p:input name="config">
            <config>
                <content-type>application/xml</content-type>
                <encoding>utf-8</encoding>
                <version>1.0</version>
            </config>
        </p:input>
        <p:input name="data">
            <document
xsi:type="xs:base64Binary">PGRhdGE+ZXhhbXBsZTwvZGF0YT4=</document>
        </p:input>
        <p:output name="data" ref="data"/>
    </p:processor>
==========

In this case, the decoded data is actually:
<data>example</data>

The results of the above are the whole of the data input, as-is,
embedded within <document></document> tags.

I can use the oxf:http-serializer processor to stream the base64 data
straight to the browser and view the XML that way; but I can't figure
out a way of converting it into an XML output that can be consumed by
other processors.



--
The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws