Encodes the specified binary bytes as Base64 and writes the resulting text.
Type Reason ArgumentNullException buffer is null. ArgumentException The buffer length minus index is less than count. ArgumentOutOfRangeException index or count is less than zero. InvalidOperationException The XmlTextWriter.WriteState is WriteState.Closed.
Note:Base64 encoding represents byte sequences in a text form comprised of the 65 US-ASCII characters (A-Z, a-z, 0-9, +, /, =) where each character encodes 6 bits of the binary data.
For more information on Base64 encoding, see RFC 2045 (http://www.ietf.org/rfc/rfc2045).
This method overrides XmlWriter.WriteBase64(Byte[], int, int).
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0