qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Whiting <tex...@bellsouth.net>
Subject Re: Message.setData()
Date Tue, 11 Aug 2009 18:33:51 GMT
Nevermind,
It should have been
     aMessage.setData(messageData);
That works.

//Bill

On 08/11/2009 02:09 PM, Bill Whiting wrote:
> I'm trying to send a message with non-printable characters in the 
> content.
>
> I added the bytes to a string and then called setData() like this
>
>         std::string messageData((char *)dataStruct, length);
>         aMessage.setData(env.envMsg);
>
> where dataStruct is the binary contentthat needs to be inserted into 
> the message
> and length is the number of bytes in the payload.
>
> What I'm seeing is that aMessage.getData().length() is zero
> but messageData.length().
>
> what am I missing? shouldn't this work?
>
> //Bill
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>


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


Mime
View raw message