I solved the problem with a workaround. The binary file must be base64 encoded and the wiremock must use base64body.