An attachment is BASE64 encoded when the layout, as determined by the FILERECFORMAT or NAMEDATTRIBUTEINTERROGATE interfaces, indicates the text field is expandable and the file is not a BACKUPDISK file.
An attachment is not BASE64 encoded if the file is non-OCTETSTRING DATA or OCTETSTRING CDATA and any of the following is true:
-
The attachment's file title ends with .txt, .csv, .html, or .rtf.
-
An ‘ATTACH AS' file title ends with .txt, .csv, .html, or .rtf.
-
The file's contents are plain ASCII printable text + CR, LF, TAB, BEL.
To force BASE64 encoding on attachments that are not normally BASE64 encoded, perform the following:
-
Create the file as an ASCII STREAM file.
-
WFL ALTER the file's EXTMODE to be OCTETSTRING.