Class: BinaryUtils

BinaryUtils()

new BinaryUtils()

Class containing utility functions for use with base64 and binaries
Source:

Methods

decode64(input) → {String}

decodes 64Based String
Parameters:
Name Type Description
input String req the string
Source:
Returns:
decoded String
Type
String

getBase64lengthBytes(pBase64str) → {Number}

returns the original size of a B64 coded String in bytes
Parameters:
Name Type Description
pBase64str String req base64 encoded string
Source:
Returns:
size of the string in bytes
Type
Number

hasSubfolder(pFilelist)

Checks if subfolders are present in a filelist
Parameters:
Name Type Description
pFilelist Array.<String> req the file list as string array
Source:

resolveSubfolders(pFilelist)

reads the folders in a filelist and returns their contained files
Parameters:
Name Type Description
pFilelist Array.<String> req Die Filelist als Stringarray.
Source:

sanitizeFilelist(pFilelist)

sanitizes the filelist gotten from Drag&Drop and returns it.
Parameters:
Name Type Description
pFilelist Array.<String> req Die Filelist als Stringarray.
Source: