Skip to main content

Binary Data

Entries can also be accessed as binary data.

Binary data can be represented in 3 formats:

FormatExample
BASE-64 (default)Zm9vYmFycw==
Hexadecimal666F6F62617273
Spaced hexadecimal66 6F 6F 62 61 72 73

The binary data format is controlled via the following setting:

Config.BuilderbinaryFormat(BinaryFormat)
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:

Config.BuilderbinaryLineLength(int)