In order to use binary payloads and headers, you have to dump the POJO model and use the Spring Integration Message construct.