I am using a Base64 encoder to encode a binary message for sending across SOAP. The message being encoded is sent from a mobile device.
The message looks like this:
and is made up of Hex values.
When it comes into my Base64 encoder the resulting Base64 String looks like:
and when decoded back out to binary (hex values) it looks like:
8285 8688 898A
As you can see the 0x00 characters are being stripped out of my input String?
I have tried various different Base64 classes and they all do this? This http://iharder.sourceforge.net/base64/
is one of the Base64 implementations I have tried.
Can anyone spot why it and seemingly all other Base64 encoders might be removing 0x00 hex values from the string?