Binary payload publish and consume using RabbitMQ-C

300 views
Skip to first unread message

U MK

unread,
Dec 5, 2019, 2:02:17 AM12/5/19
to rabbitmq-users

Hi,

Someone please suggest how can I publish binary data to Queue and consume the same.
Please let me know what all properties I need to set while publishing that payload.

In property content--type, I have seen only "text/plain", and "application/octet-stream" but it doesn't work with Binary content.
Is there any other content-type I need to set OR any mandatory property need to set?

Thanks,
Mohan 

Wesley Peng

unread,
Dec 5, 2019, 2:11:39 AM12/5/19
to rabbitm...@googlegroups.com
U MK wrote:
> In property content--type, I have seen only "text/plain", and
> "application/octet-stream" but it doesn't work with Binary content.
> Is there any other content-type I need to set OR any mandatory property
> need to set?

You should know what exactly your file is. :)
For example, for HTTP transfer it is:
Content-Transfer-Encoding: binary

regards.
Reply all
Reply to author
Forward
0 new messages