Encodes the specified binary bytes as base64 and writes out the resulting text.
[Visual Basic] Overrides Public Sub WriteBase64( _ ByVal buffer() As Byte, _ ByVal index As Integer, _ ByVal count As Integer _ ) [C#] public override void WriteBase64( byte[] buffer, int index, int count ); [C++] public: override void WriteBase64( unsigned char* buffer[], int index, int count ); [JScript] public override function WriteBase64( buffer : Byte[], index : int, count : int );
For example, the byte buffer may contain the binary contents of a GIF image. This clearly would not be valid XML. The Base64 encoding is designed to represent arbitrary byte sequences in a text form comprized of the 65 US-ASCII characters ([A-Za-z0-9+/=]) where each character encodes 6 bits of the binary data. See RFC 1521.
XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace