The EncodeFile method encodes the contents of a file, using
the specified encoding method.
It is permitted to specify an empty string as the output
file name. In this case, the control will create a temporary file in
the directory specified by the TEMP environment variable. After the
file has been compressed, the OutputFile property will be set
the name of the temporary file that has been created. It is the
responsibility of the application to delete this temporary file after
it is no longer needed.
When specifying the fileEncodeCompressed option, it is
important to remember that the compressed, encoded data can only be
restored to its original contents using the DecodeFile method.
This option should not be used when encoding a file to be attached to
an email message unless you provide the recipient with a utility to
decode the data.
The InputFile, OutputFile and Encoding
properties will be updated with the values specified to this