Base64EncodeStart

The Base64EncodeStart function begins Base64 binary file encoding.

Base64EncodeStart FileName

Parameters

FileName
The name of the file to encode.

Return value

The function returns True if successful. Otherwise, returns False.

Notes

The base64 encoding is designed to represent the binary data as ASCII text strings. If you want to send a binary file with SMTP or NNTP protocol, you should transfer it into text representation first. The function starts base64 encoding of binary file, according RFC2045. You can use this function if you want to send binary files, with SMTP or NNTP protocol. After calling Base64EncodeStart, the subsequent callings of Base64Encode will do the encoding and will return the text strings.
The opened base64 stream is closed when the SHOTIP.Connection object is released. If you want to close it before your program will be finished, you should call the Base64EncodeStart with zero length string argument.

Example
See Base64Encode.