Back to product page

Base64 Method


Encodes file using Base64 encoding.

Syntax

  • Basic
object.Base64 (InFile, OutFile)
The Base64(object,InFile,OutFile) syntax has these parts:
objectAn expression evaluating to an object of type SmtpEncoder
InFileRequired. A String value. Holds full path to file on disk that is to be encoded.
OutFileRequired. A String value. Holds full path to file on disk where encoded file will be saved.

Remarks

Base64 method will encode file specified in InFile parameter and store it to file specified in OutFile parameter. BASE64 encoding will be used. If result file exists, it will be overwritten.

Resulting data is text-only file that can be safely transported over internet.

No headers are defined or added to current message object. If you want to add attachment, you should use Message.Attach method instead.

Platforms

Windows