zhxsxuan commented on issue #87:
URL: 
https://github.com/apache/rocketmq-client-python/issues/87#issuecomment-617592278


   > the py SDK does not support the binary message body.
   > maybe you can encode the byte body using base64 encoding before sending 
and decode it before consuming.
   > another way, you can try to add a new API to set a binary message body 
using a special C API "SetByteMessageBody" instead.
   
   I tried changing the set_body function as following
   ```
       def set_body(self, body):
           if isinstance(body, binary_type):
               ffi_check(dll.SetByteMessageBody(self._handle, _to_bytes(body), 
len(body)))
           ffi_check(dll.SetMessageBody(self._handle, _to_bytes(body)))
   ```
   But the message received was not changed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to