Encode and decode files using standard algorithms such as base64, uuencode and quoted-printable. The class can also be used to compress and expand files, either separately or as part of the encoding process.
For a list of all members of this type, see FileEncoder Members.
System.Object
SocketTools.FileEncoder
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The FileEncoding class provides methods for encoding and decoding binary files, typically attachments to e-mail messages. The process of encoding converts the contents of a binary file to printable 7-bit ASCII text. Decoding reverses the process, converting a previously encoded text file back into a binary file.
There are two primary types of encoding used, uucode and base64. The uucode algorithm (so called because the programs to perform the conversion were called uuencode and uudecode) is commonly used on UNIX systems and is still widely used when attaching binary files to USENET newsgroup posts. The base64 algorithm is most commonly used with e-mail attachments, and is often referred to as MIME encoding since this is the encoding method specified in the MIME standards document. The class also supports a newer encoding format called yEnc, which has become popular for posting binary files to Usenet newsgroups.
Namespace: SocketTools
Assembly: SocketTools.FileEncoder (in SocketTools.FileEncoder.dll)