Share via


Encoders Namespace

Topic Last Modified: 2007-04-06

The Encoders namespace contains various classes (Base64Encoder, Base64Decoder, BinHexEncoder, BinHexDecoder, and so on) that can perform bulk conversion of content in memory, and one class (EncoderStream) that can perform any of the other bulk conversions, but on a stream. The EncoderStream class uses one of the bulk encoder or decoder classes to do its specific conversion. For example, you can pass a Base64Encoder to the constructor for a EncoderStream object, causing the resulting EncoderStream to encode into base 64 the Stream that it owns.