NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlTextWriter.WriteBase64

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
);

Parameters

buffer
Byte array to encode.
index
The position within buffer indicating the start of the bytes to write.
count
The number of bytes to write.

Remarks

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.

See Also

XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace