Hi Scott,
Trying using decodeToXMLByte instead of decode.
Regards,
David A. Cargill
XML Parser Development
IBM Toronto Lab
(905) 413-2371, tie 969
[EMAIL PROTECTED]
Scott Morgan
<[EMAIL PROTECTED]
.co.uk> To
[email protected]
04/20/2005 11:45 cc
AM
Subject
Base64::decode to XMLCh* - why?
Please respond to
c-dev
It makes no sense to me, Base 64 is for encoding binary data, when you
decode it (regardless of whether the encoded source is in UTF16 (i.e.
from a parsed XML file DOMNode) or ASCII form) the output should be bytes.
But the decode method that takes XMLCh* as it's source returns XMLCh* so
that {0x01, 0x02, 0x03} becomes (0x01, 0x00, 0x02, 0x00, 0x03, 0x00 }.
You have to transliterate the encoded data down to ASCII form to send to
the XMLByte* decode method which seems a bit pointless.
Is this a bug or am I missing something?
Scott Morgan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]