Hunny Software Library Reference

Base64DecoderW.Decode Method 

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

[Visual Basic]
Public Function Decode( _
   ByVal encoded As String _
) As ByteString
[C#]
public ByteString Decode(
   string encoded
);

Parameters

encoded
String containing the encoded data.

Return Value

Byte string containing the decoded data.

Remarks

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

This method makes it very simple to perform base64 decoding. 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 decoding of large data using limited memory.

This method uses the low-level interface internally.

Exceptions

Exception TypeCondition
DecodeException The decoder detects an error.

See Also

Base64DecoderW Class | Hunny.Mime Namespace