Files ToBase64¶ Converts the given string to a Base64 encoded string. 1myFiles.ToBase64(str: string, encoding: number):string Parameters¶ string str The string to convert. number encoding The encoding code page. Optional. The default is 65001 (UTF-8). Returns¶ The Base64 encoded string.