TMimeWriter.WriteBase64 Method
Writes the base64 encoding of a byte array, as defined in RFC 2045 section 6.8 This method does not keep the state, so all binary data must be supplied at once. As an alternative you could use System.Convert.ToBase64String(byte[], int, int), but this method avoids creating a temporary string, and then doubling the memory needed for the encoding. This method will also correctly split the string at 76 characters, while Convert.ToBase64 in .NET 1.1 will not. (2.0 added this support)
Syntax
Namespace: FlexCel.Core
public static void WriteBase64(TextWriter Data, Byte[] s)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
Data | TextWriter | TextWriter where we will write the data. | |
s | Byte[] | String to Encode. |