1: 2: 3: 4: 5: 6:
byte[] inboundStringBytes; XmlDocument outboundXml; string base64String = Convert.ToBase64String(inboundStringBytes); XmlNode node = outboundXml.CreateNode(XmlNodeType.Text, "MyImage", "MyNamespaceUri"); node.Value = base64String;