Encodes the specified binary bytes as base64 and writes out the resulting text.
[Visual Basic] MustOverride Public Sub WriteBase64( _ ByVal buffer() As Byte, _ ByVal index As Integer, _ ByVal count As Integer _ ) [C#] public abstract void WriteBase64( byte[] buffer, int index, int count ); [C++] public: virtual void WriteBase64( unsigned char* buffer[], int index, int count ) = 0; [JScript] public abstract 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.
XmlWriter Class | XmlWriter Members | System.NewXml Namespace