File Encoding and Decoding Control  

Encode and decode files using standard algorithms such as base64, uuencode and quoted-printable. The control can also be used to compress and expand files, either separately or as part of the encoding process.


Control Information

Object Name FileEncoderCtl.FileEncoder
Version 9.3.9320.2834
ProgID SocketTools.FileEncoder.9
ClassID F2A6BB83-61A2-43C1-9EF1-BA1503CD851F
Threading Model Apartment
Help File CST93CTL.CHM
Dependencies None
Standards RFC 1738, RFC 1951, RFC 2045


The File Encoding control provides functions for encoding and decoding binary files, typically attachments to email 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 email attachments, and is often referred to as MIME encoding since this is the encoding method specified in the MIME standards document. The control also supports a newer encoding format called yEnc, which has become popular for posting binary files to Usenet newsgroups.


The SocketTools ActiveX Edition components are self-registering controls compatible with any programming language that supports COM (Component Object Model) and the ActiveX control specification. If you are using Visual Basic 6.0 or Visual C++ 6.0, it is required that you have Service Pack 6 (SP6) installed. It is recommended that you install all updates for your development tools.

This component is supported on Windows XP and later versions of the Windows desktop and server platforms. If you are using Windows XP, you must have Service Pack 3 (SP3) installed as a minimum requirement. It is recommended that you install the current service pack and all critical updates available for your version of the operating system.

This product includes both 32-bit and 64-bit ActiveX controls. Native 64-bit CPU support requires the latest 64-bit version of Windows XP Professional, Windows Server 2003 or later versions of the Windows operating system.


When you distribute an application that uses this control, you can either install the file in the same folder as your application executable or as a shared component in the appropriate system folder. If you install the control in the system folder, it is important that you distribute the correct version for the target platform and it must be registered. If you install the control in the same folder as your executable, it is recommended that you use registration-free activation or COM redirection to ensure that the correct version of the control is loaded by the application.