If you define a web service param as byte[], it should be serialized as base64. If you want to do it by hand, you can use a string parameter and do Convert.ToBase64String() and Convert.FromBase64String().
Does that help? > -----Original Message----- > From: jeff Hughes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 01, 2003 10:33 AM > 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 >