I use a simple JCSMP consumer to consume data from a broker, here is the code:
When messages are received, there are always some extra bytes at the beginning of the buffer. for example, when I publish a TextMessage with content “Hello World!” the received data is
The first 2 bytes are extra.
When I use Postman to post a message with body “123”, the received data is:
There are 4 extra bytes at the begining of the buffer.
What is the cause of the extra bytes?
Seems the same problem has been asked in java - Invald characters at start of message from Solace-MQ - Stack Overflow