William, Thanks for the code reference, that file had all of the examples I needed, and it seemed to work well using the Buffer class.
Wes -----Original Message----- From: William Henry [mailto:whe...@redhat.com] Sent: Thu 5/21/2009 11:22 AM To: users@qpid.apache.org Subject: Re: Binary Data Transfer 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: cpp/src/qpid/agent/ManagementAgentImpl.cpp 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. Best, William ----- "Wes Parish" <wes.par...@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-subscr...@qpid.apache.org
--------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscr...@qpid.apache.org