ftos.convert.hex.toByteArray

Decodes a hexadecimal-encoded string and returns an object conforming to the IFtosWorkflowBlob interface, which exposes the length of the decoded binary data in bytes. This is useful for determining the size of the decoded content without exposing the raw bytes.

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

Syntax

Copy
ftos.convert.hex.toByteArray(hex: string): IFtosWorkflowBlob;
 
Parameter Type Description
hex string A continuous hexadecimal string representing the data. Each byte must be represented by two uppercase hexadecimal characters (digits 0–9 and letters A–F). E.g.: "48656C6C6F".
IMPORTANT!  
Only continuous hexadecimal strings are accepted, without spaces, tabs, or separators. E.g.: 48656C6C6F is valid, but 48 65 6C 6C 6F will cause incorrect processing.

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