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