StompProtocolAndroid icon indicating copy to clipboard operation
StompProtocolAndroid copied to clipboard

Data is lost / modified if server sends binary data

Open andrewdittmer opened this issue 4 years ago • 0 comments

If server sends binary data with content type application/octet-stream, this data can be lost / incomplete after being converted to a string.

Perhaps StompMessage could contain a bytearray field of the original data sent?

Steps to reproduce: Server sends binary data which includes signed int.

Expected outcome: There should be a way to get the data as originally sent

Actual result: in the subscribe callback, the correct data cannot be retrieved from the stompMessage payload due to character encoding.

andrewdittmer avatar Dec 03 '20 06:12 andrewdittmer