NetCode Component |
The NetCode control can be used to encode or decode files or strings. UUEncode, MIME's Base64 and Quoted-Printable, as well as URL encoding formats are currently supported. (NOTE: The following is a very short description. For more information, please consult the help files that come with the respective package.) |
Understanding Encoding/Decoding
Most of mail systems use only 7 bits to transmit messages. A binary file such as an archive or a non-plain text formatted file produced from a text processor should be first encoded in 7 bit code before email transfer.
Decoding is the inverse process: creation of the original file from the encoded data. Encoded data are often split over several files because of the size limit placed on the email message. Each message is preceded by information about splitting and also the mail header. NetCode supports this case in both directions:
- during encoding setting the MaxFileSize property to the maximum size of a message body instructs NetCode to split the encoded data over several files. Multiple filenames can be specified by using question marks "?".
- during decoding, the body messages can be saved in separate files named namexxx.ext where xxx is a numeral starting at 000 and ext is ".uue", ".b16", or ".q_p" according to Format. This multiple filename should be given to EncodedData. While uudecoding, if the IntelliCode property is set to True, NetCode tries to filter the data that don't belong to the pure uuencoded data (also the mail header).
PROPERTIES |
EVENTS |