ftos.convert.base64.toHex
Converts a Base64 encoded string into its hexadecimal string representation.
Syntax
Copy
ftos.convert.base64.toHex(base64: string): string;
| Parameter | Type | Description |
|---|---|---|
base64
|
string | Base64-encoded input string to convert. |
Return Value
A string containing the hexadecimal representation of the decoded data. Each byte is represented by two uppercase hexadecimal characters (digits 0–9 and letters A–F).
Example
This example:
- Takes the SGVsbG8gV29ybGQ= Base64 string, which encodes the text Hello World.
- Converts it to hexadecimal 48656C6C6F20576F726C64.
- Stores the result in the hexData variable.
Copy
var hexData = ftos.convert.base64.toHex('SGVsbG8gV29ybGQ=');