Hi,
I'm using the Base64 class to encode and decode binary data in xml files
and encountered some strange things I hope someone can explain.
If I'm encoding a byte array with a size of 33552 bytes I get an array of
the length 44736, which seems correct to me. Decoding it returns an array
with 33553 bytes - one more than the original byte array. This looks like a
bug, am I right? If I'm right, does anyone has fixed it already?
The second strange effect occurs while parsing the xml document with the
encoded data. The document looks like that:
<content>/KJjndlkh/lhjnlkj...</content>
The SAX parser splits my content into three parts, invoking the
"characters" method three times. Am I doing something wrong?
Thanks for any idea!
Holger