Satish Kumar wrote:
Hi,

Need some clarifactions ! XSD contains an element whcih is of type "base64Binary". After unmarshlling the XML, i use the method "getByteArrayValue()" to fecth the value. XML beans automatically invokes its Base64 and decodes my object value, and returns me the decoded value. I dont want this to happen, i would like to get the encoded value as it is.

I even tried using the method getStringValue(), this returns me the encoded value only, but internally XMLBeans decodes it to check whether the value is a valid Base64. I dont want this to happen, how can it be done.

Why is it a problem if xmlbeans takes a peek at the decoded chunk? It still gives you the encoded data.

I would guess you could still access the raw content using getNode() and working with the DOM from there.


I need this in a case where an external application fisrt encodes a value and then sends it in small chunks by multiple xml's to our application. Our application will receive all the XML then concatenate the received bytes of this element and then only decode it.


Thanks !!!

Rgds,
Satish



<http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/[EMAIL PROTECTED]>

--
Duty, n:
        What one expects from others.
                -- Oscar Wilde

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to