Binary Data
Entries can also be accessed as binary data.
Binary data can be represented in 3 formats:
Format | Example |
---|---|
BASE-64 (default) | Zm9vYmFycw== |
Hexadecimal | 666F6F62617273 |
Spaced hexadecimal | 66 6F 6F 62 61 72 73 |
The binary data format is controlled via the following setting:
Example
key = Zm9vYmFycw==
byte[] bytes = config.get("key").asBytes().orElse(null);
Binary lines can be split up into separate lines for readability:
key =
Zm9vYm
Fycw==
Binary data line wrapping can be controlled via the following setting: