I am sending the file as a message, converting it to an array of bytes using the kafka manufacturer.
I also need to add some headers for the message, such as file name, timestamps, etc., so in the end I can process the message based on the file name and other headers.
I am currently creating an object and wrapping raw messages and headers in it and sending the object to the byte array as a message.
I would like to know if there is a way by which I can add custom headers when posting a post?
source share