ftos.convert.base64.toByteArray

Decodes a Base64 encoded string and returns an object conforming to the IFtosWorkflowBlob interface, which exposes the byte length of the decoded binary data. This is useful for determining the size of the decoded content without exposing the raw bytes or as input for other methods such as ftos.convert.byteArray.toHex.

NOTE  
The returned object does not provide direct access to the underlying byte array. However, internally, the Base64 string must be decoded into a byte array as an intermediate step to determine the byte length of the binary data.

Syntax

Copy
ftos.convert.base64.toByteArray(base64: string): IFtosWorkflowBlob;
 
Parameter Type Description
base64 string Base64-encoded input string to decode.

Return Value

Returns an IFtosWorkflowBlob object.

Interfaces

IFtosWorkflowBlob

A binary data container exposing only the byte length of the data through a read-only length property, without providing direct access to the underlying bytes.

Copy
interface IFtosWorkflowBlob {
    readonly length: number;
}
 
Property Type Description
length number Number of bytes of the binary data.

Example