Hi JJ,

See Convert.ToBase64String and Convert.ToBase64CharArray methods.

--
Andrey Shvydky

> -----Original Message-----
> From: jeff Hughes [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 6:33 PM
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] Base64 Encoding for Xml Documents
>
>
> I have been trying to figure out how to transport binary data
> through Xml
> to a web service that will upload this binary data to a sql
> server database.
>
> I am able to do this if I connect directly to the database
> from my web app
> and use executeNonQuery to send the binary data. What I am
> looking for is a
> way to transport binary data through xml in .NET. I have been
> able to find
> examples using the MSXML parser but I do not want to use that
> parser. It
> shows this as the example on how to convert to binary data.
>
> oElement.dataType = "bin.base64"
>
> I have found Encoding.ASCII.EncodingName but this seems to only be for
> culture type.
>
> How do I encode a binary object to base64 so I can pass it to an XML
> document.
>
> Thanks
>
> JJ
>
>

Reply via email to