Closed ioggstream closed 5 years ago
How to encode binary payload data?
<0x....>
base64 is a standard, though it may confuse the reader on whether he's required to actually encode data
python repr (eg. b'\x8b\x08\x80{"hello": "world"}\x03 is more clear on showing that you are sending binary data.
b'\x8b\x08\x80{"hello": "world"}\x03
For now we'll use base64.
Task
How to encode binary payload data?
<0x....>
notes
base64 is a standard, though it may confuse the reader on whether he's required to actually encode data
python repr (eg.
b'\x8b\x08\x80{"hello": "world"}\x03
is more clear on showing that you are sending binary data.