Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3AA84200D57 for ; Mon, 11 Dec 2017 19:25:23 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 39509160C13; Mon, 11 Dec 2017 18:25:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7F8C9160C03 for ; Mon, 11 Dec 2017 19:25:22 +0100 (CET) Received: (qmail 71558 invoked by uid 500); 11 Dec 2017 18:25:21 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 71531 invoked by uid 99); 11 Dec 2017 18:25:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Dec 2017 18:25:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 79A3BC45AE for ; Mon, 11 Dec 2017 18:25:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id H14-e05HKj6a for ; Mon, 11 Dec 2017 18:25:19 +0000 (UTC) Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DD46D62F4C for ; Mon, 11 Dec 2017 18:05:44 +0000 (UTC) Received: by mail-wr0-f180.google.com with SMTP id q9so18530095wre.7 for ; Mon, 11 Dec 2017 10:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=0JUy3AF592eS6wRRQajdsLLLGNSSChx9nkbuOVRgaK4=; b=KE4pD7QVW/ClaiLwxPa7uDwepe5nxsPmeXWXB0qyyH6T2sStJuur+6fhRFAbVfP4Fj 6ErXsiatZ85cVIEzUaMXl0MSI3Sp+Hln8DXDR/cH2+jPctg/nAGLM8uXlDMi5iNUbAHh umEDoxO3q0whw2kPv/zA1BpOnDy3gSR3HmmveewBIIrfG1zyxcIdUdwPZuSEXuXH3lze sqKYUt4aogJd2uvXq3vKz4foKjv9BdtpziMTp7FO6JofuWxOUp5nIYIzeifBWNVuWvWS VRXezTaru0X6qz2BVPVjHRPtkhVpREjC+awIaauzC/CQm8trLitSJ8pmcRHXDlTVU76A cSPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=0JUy3AF592eS6wRRQajdsLLLGNSSChx9nkbuOVRgaK4=; b=BsFX4qoyF2dy5hhUDo/6Tu94e7HSbw1hFUCWJzeaP25VD4ZGmZr2RcidM3JDF2xkDn cfm4Vo9XfbdV5mpQoUI2XN7vg26YZWrQ+0xd5xkmjcvCqT8lrt+hLN9SVKM3CqmM/5nz JOcNK611aHu06Xy96lVEVDib5LNop7z6LDuaq/telX0IeG3tIb9iE1Wg/Jgh/ImN9Jcn A8lU2PMFE+Kyyn2HCWGSOnpxJEz0jtXVCFtMRnvJToguVfJWRswJ1BWGR/UtKOE9xm8K QsERttMvy4LLhCRLZSJQTYL+klvheLnOxv/hkaxXpVpAmFlsF1tcLOIke1h7dfNUPP6Q FnOA== X-Gm-Message-State: AKGB3mIgu+i+R9/Ln9u/LMVaFMxmIwgWOhA8taDTXfWywQ7weqQZWpd0 GqLFCYZ2O8KNw4KYcrCs9Ar/QA== X-Google-Smtp-Source: ACJfBovjtZR5UnQDOnUp7fhHs+lyWZD1F/6jGV9JbOFBGH8sxHxzFYp6ujiYZ4B7JY2OXNgD6Z+dSA== X-Received: by 10.223.153.100 with SMTP id x91mr1081692wrb.189.1513015543111; Mon, 11 Dec 2017 10:05:43 -0800 (PST) Received: from [192.168.1.142] ([88.202.149.90]) by smtp.googlemail.com with ESMTPSA id s17sm1562213wmd.8.2017.12.11.10.05.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 10:05:42 -0800 (PST) To: users@camel.apache.org From: Tim Dudgeon Subject: Writing to message body Message-ID: Date: Mon, 11 Dec 2017 18:05:41 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US archived-at: Mon, 11 Dec 2017 18:25:23 -0000 I have a payload that is generated in a Camel Processor that allows its data to be obtained with a writeTo(OutputStream out) method. Is there an easy way to use this to write to the output Message's body using this method? e.g. Normally you might have an InputStream and and set it using something like exchange.getOut().setBody(inputStream), but here I have something that writes to an OutputSteam. I know I can used a java.io.PipedInputStream if necessary but thinking there should be an easier way.