From users-return-1750-apmail-qpid-users-archive=qpid.apache.org@qpid.apache.org Tue Aug 11 18:10:08 2009 Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 8053 invoked from network); 11 Aug 2009 18:10:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Aug 2009 18:10:08 -0000 Received: (qmail 5618 invoked by uid 500); 11 Aug 2009 18:10:13 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 5579 invoked by uid 500); 11 Aug 2009 18:10:13 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 5388 invoked by uid 99); 11 Aug 2009 18:10:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 18:10:13 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 66.196.96.96 is neither permitted nor denied by domain of textux@bellsouth.net) Received: from [66.196.96.96] (HELO smtp123.sbc.mail.re3.yahoo.com) (66.196.96.96) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Aug 2009 18:10:02 +0000 Received: (qmail 79062 invoked from network); 11 Aug 2009 18:09:41 -0000 Received: from unknown (HELO maverick.brjzm.com) (textux@74.177.75.14 with plain) by smtp123.sbc.mail.re3.yahoo.com with SMTP; 11 Aug 2009 18:09:41 -0000 X-YMail-OSG: HT1xpzgVM1lN94wlKCiCC8JBUHsNF_r9knw.43U_y81mOXVMQP60A8NbMYUKhFNpoUBkNlNsqZvfeLEWbi1PqnwjF_uU0rwRwZPrC8YCH_WaYqzTH7hmsR5u7oKTB8N0C39wFbIHDtealpo6KCWNQl4OsjJ0Wl6VyJRRZarW.OOoTgVEwnZOxkr21TJzENJRf1CSmA.DhSUtgkjEdFh55XGccy8XXYnb0.DFB_xzyBvoVW9OWrZtn9uXl9mIVRTUE4dfDcXhcEHB9Q-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4A81B3E4.3010805@bellsouth.net> Date: Tue, 11 Aug 2009 14:09:40 -0400 From: Bill Whiting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Message.setData() Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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