Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.ReadBase64 Method

Reads and decodes the Base64 encoded contents of an element and stores the result in a byte buffer. [Edit]

public int ReadBase64 (byte[] buffer, int offset, int length)

Parameters

buffer
Documentation for this section has not yet been entered. [Edit]
offset
A int specifying the zero-based index into array where the method should begin to write. [Edit]
length
Documentation for this section has not yet been entered. [Edit]
offset
Documentation for this section has not yet been entered. [Edit]

Returns

A int containing the number of bytes written to array, or zero if the current instance is not positioned on an element. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionarray is null. [Edit]
ArgumentOutOfRangeException

offset < 0, or len < 0.

- or -

len > array.Length - offset.

[Edit]
System.Xml.XmlExceptionThe Base64 sequence is not valid. [Edit]

Remarks

Note:

This method can be called successively to read large streams of embedded text.

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/2045).

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0