server.mime.fromBase64String

(FintechOS Studio 21.1.0 and later)

Returns the MIME type of a string encoded using the Base64 scheme.

Syntax

Copy
function server.mime.fromBase64String(source: string): string
 
Parameter Type Description
source string Source contents encoded using the Base64 scheme.

Return Value

Returns a string containing the MIME type if it matches one of the known MIME types or null otherwise.

Examples