(E-Mail Removed) <(E-Mail Removed)> wrote:
> Hi Tim, thanks for the follow up. I found that the content of the XML
> node was being returned as a base-64 byte array. I?m not quite surte
> of how to go about getting this back into an ascii string.
What *exactly* do you mean by "a base-64 byte array"? Base64 is a text
encoding of binary, so if something is base64 encoded the result should
be text, rather than a byte array. Do you mean that it's gone something
like:
Binary data (byte[])
to
Base 64 encoding (string)
to
Binary data (byte[]) via a normal encoding
?
If so, use the appropriate encoding to get back to the Base64 version,
and then Convert.FromBase64String to get the original binary. (If the
original binary was itself an encoded form of a text string, you've got
one more call to Encoding.GetString to make - again, with whatever
encoding was originally used for that step.)
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too