Hunny Software Library Reference

Base64Encoder.Encode Method 

Performs single-step buffer-to-buffer base64 encoding.

[Visual Basic]
Public Function Encode( _
   ByVal decoded As ByteString _
) As ByteString
[C#]
public ByteString Encode(
   ByteString decoded
);

Parameters

decoded
Byte string containing the data to be encoded.

Return Value

Byte string containing the encoded data.

Remarks

To perform base64 encoding using this method, create a ByteString containing the data you want to encode and pass it as the method's argument. The returned ByteString contains the encoded output.

This method makes it very simple to perform base64 encoding. The disadvantage of this method is that it requires all the data to be kept in memory for processing. You may use the low-level interface, described in the overview section, to perform base64 encoding of large data using limited memory.

This method uses the low-level interface internally. Any options set for the encoder object have the same effect using either this method or the low-level interface.

See Also

Base64Encoder Class | Hunny.Mime Namespace