Re: Binary Data Transfer

2009-05-22 Thread Alan Conway
your application. -Original Message- From: Alan Conway [mailto:acon...@redhat.com] Sent: Fri 5/22/2009 7:41 AM To: users@qpid.apache.org Subject: Re: Binary Data Transfer Wes Parish wrote: Is the Qpid C++ Client API capable of transferring binary data? It seems like the only data type in

RE: Binary Data Transfer

2009-05-22 Thread Wes Parish
-Original Message- From: Alan Conway [mailto:acon...@redhat.com] Sent: Fri 5/22/2009 7:41 AM To: users@qpid.apache.org Subject: Re: Binary Data Transfer Wes Parish wrote: > Is the Qpid C++ Client API capable of transferring binary data? It seems > like the only data type in qpid/client/Mes

Re: Binary Data Transfer

2009-05-22 Thread Alan Conway
Wes Parish 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

RE: Binary Data Transfer

2009-05-22 Thread Wes Parish
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

RE: Binary Data Transfer

2009-05-21 Thread Steve Huston
Hi Wes, > Is the Qpid C++ Client API capable of transferring binary > data? Yes. > It seems like the only data type in > qpid/client/Message.h is the std::string (data field of > TransferContent.h). Also yes. > I am interested in transferring segments of binary data, and > not ascii stri

Re: Binary Data Transfer

2009-05-21 Thread Ted Ross
To clarify further... You can put any arbitrary binary content into the body of an AMQP message. William is illustrating how to use the AMQP codec to safely encode typed data in binary form. Using the AMQP codec allows you to not concern yourself with issues like endian-byte-order in multi-b

Re: Binary Data Transfer

2009-05-21 Thread William Henry
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