Hi all,

When I send messages to a queue using the java or python APIs, the message body 
I receive on the other side (C++ binding) is preceded by b" and appended with ".
When I send the same message with the C++ API, I do not have this behaviour.

Example: 
[C++] sender.send( proton::message("[MESSAGE]") )
--> results in [MESSAGE] in C++ ( to_string(message.body()) )

[python] sender.send( Message(body="[MESSAGE]") ) 
--> results in b"[MESSAGE]" in C++ ( to_string(message.body()) ) => b and " are 
added at the beginning, and " is added at the end.

I tried many things like forcing the "content_type" and the "content_encoding", 
or changing the "inferred" flag, but nothing helped. These annoying b" and " 
are still there.
Looking at the source code of qpid proton, I also do not find where they could 
be added or why.

(BTW, I use qpid-proton 0.18.0)

Any idea ?

Olivier

Reply via email to