From czhanga at gmail.com Fri Nov 14 15:24:55 2008 From: czhanga at gmail.com (Cong Zhang) Date: Fri, 14 Nov 2008 09:24:55 -0600 Subject: [Rhm-users] Sending raw data over a message Message-ID: <8005e4090811140724v25989a00p5f693dcb31db3c9c@mail.gmail.com> I am wondering if it is possible to send raw data over a message. I have gone through Qpid C++ API reference and couldn't find any solution. Basically, the producer and consumers in my application communicate through binary data. However, setData method in the Message class only accepts std::string data. I don't think it is efficient to convert between the binary data and std::string when the size of the data is large. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From gsim at redhat.com Fri Nov 14 16:42:23 2008 From: gsim at redhat.com (Gordon Sim) Date: Fri, 14 Nov 2008 16:42:23 +0000 Subject: [Rhm-users] Sending raw data over a message In-Reply-To: <8005e4090811140724v25989a00p5f693dcb31db3c9c@mail.gmail.com> References: <8005e4090811140724v25989a00p5f693dcb31db3c9c@mail.gmail.com> Message-ID: <491DAA6F.8020401@redhat.com> Cong Zhang wrote: > I am wondering if it is possible to send raw data over a message. I have > gone through Qpid C++ API reference and couldn't find any solution. > Basically, the producer and consumers in my application communicate > through binary data. However, setData method in the Message class only > accepts std::string data. I don't think it is efficient to convert > between the binary data and std::string when the size of the data is large. There is no need for the contents of std::string to be a readable sequence of characters; it can be used to just store a sequence of bytes. There is no interface to stream in message as yet. What sort of size are you talking about here?