Skip to content

FromBase64

Converts the given Base64 encoded string to a string.

myFiles.FromBase64(content: string, encoding?: number, removeBom?: boolean):string

Parameters

string content
    The Base64 encoded string.

number encoding optional
    The encoding code page. Optional. The default is 65001 (UTF-8).

boolean removeBom optional
    Whether to remove a UTF-8 byte-order mark. The current server implementation removes it for UTF-8 input.

Returns

The decoded string.