qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Henry <whe...@redhat.com>
Subject Re: Binary Data Transfer
Date Thu, 21 May 2009 16:22:20 GMT
Hi Wes,

It is possible. Unfortunately the only C++ example I can think of this is currently in the
management (QMF) code.  I'll try to get another example out soon.

Have a look here:

Simply, the steps are:
You create a Buffer and then use the various put APIs (e.g. putLong, putDouble etc.) to put
the binary types in the Buffer. You then place that Buffer in the data portion of the message.
On the consumer side you extract the Buffer and then use the various get APIs (e.g. getLong,
getDouble etc.) to retrieve the values from the Buffer.


----- "Wes Parish" <Wes.Parish@cowtownt.org> wrote:

> Is the Qpid C++ Client API capable of transferring binary data?  It
> seems like the only data type in qpid/client/Message.h is the
> std::string (data field of TransferContent.h).  
> I am interested in transferring segments of binary data, and not ascii
> strings.  Is this possible with the current Qpid C++ API
> implementation?  I have not researched the AMQP protocol much yet, but
> had assumed this would be possible with the wire protocol.  If it is
> not currently implemented, but it is possible, would it be as simple
> as overridding the TransferContent and Message classes and working
> backwards from there?
> Thanks,
> Wes

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message