Use the following example code to convert a Base64URL to Base64 encoder.
Hi,
Sadly, you cannot change the Base64 encoder on a request basis. The decoder follows the IJSON RFC, which states that binary should be base64url (and will follow the system config to fall back to the old encoding if legacy flag is on).
The goal in 4.0 was to make vert.x JSON web “stardards” compliant, if you really need a custom format for specific messages, then I’d suggest creating your instance of an “ObjectMapper”.
ObjectMapper mapper = new ObjectMapper();
SimpleModule module = new SimpleModule();
module.addDeserializer(byte[].class, new ByteArrayDeserializer()); // here you can specify how the Base64 string should be parsed
mapper.registerModule(module);
mapper.readValue(json, MyClass.class);