Use the JMS methods to get the bytes in a BytesMessage since those decompress the payload if the content was compressed.