Skip to main content
Skip table of contents

f$base64encode


f$base64encode

Encoding the internal binary buffer as base64. This internal buffer is used to process binary data from files or database fields. If these binary data are to be transferred to other systems, they must be converted into a machine-readable form. This encoding is also used when sending e-mail attachments.

Syntax:

result = f$base64encode ( [Input] )

 

Argument

Type

Meaning

Input

string

Input string to encode. This argument is optional. Without this argument the internal buffer is encoded

Result:

String

Encoded buffer

Examples:

File = 'c:\\temp\\acbis.jpg'
Status = f$FileBinRead( File , '_' )
image = f$base64encode ()

On the string parameter image is now the encoded file content.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.