Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F45117C42 for ; Mon, 6 Oct 2014 19:13:33 +0000 (UTC) Received: (qmail 79448 invoked by uid 500); 6 Oct 2014 19:13:32 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 79397 invoked by uid 500); 6 Oct 2014 19:13:32 -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 79385 invoked by uid 99); 6 Oct 2014 19:13:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 19:13:32 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_RHS_DOB,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.213.177 as permitted sender) Received: from [209.85.213.177] (HELO mail-ig0-f177.google.com) (209.85.213.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 19:13:06 +0000 Received: by mail-ig0-f177.google.com with SMTP id a13so3371740igq.4 for ; Mon, 06 Oct 2014 12:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=YGYJ4I4PBP9ZOe+xIsCbdTKmsCwXC0ns0mczoiYpYCo=; b=JYEG3c6m+rQL1ZxgnPLysNT9h9wiMVgZS/9I3iFlkTsIlRonIgv4C+n+fERXeBpe7h PEB9JlDzqE0huTFXVexj0poJ+9dNJH1iIUq6WMl5swQm2YpkdUorAIepzNF+V6ccD5DP 7Maxiua1+aNL07H6zmXIu8Mt9TZcTC5tP+/hKaqN6++6u9LKMV2VtSjCR99kPQywmGH4 7Agwcm5E5fEWUvbpUBTsMrO05qqUTbjEMUYoBYGUk8l7yYvuSkyqkkYIDgA6YVYZEC87 fvc0RYg9mIlQLip0KkbUUJmfXRBikcj1/kMXvXeJ2pVpAtZ3ccGPUWiUdnF7HJpZDHIn n+uQ== X-Received: by 10.42.27.20 with SMTP id h20mr5599303icc.82.1412622784827; Mon, 06 Oct 2014 12:13:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.233.200 with HTTP; Mon, 6 Oct 2014 12:12:44 -0700 (PDT) In-Reply-To: <1412617468995-5757366.post@n5.nabble.com> References: <1412617468995-5757366.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 6 Oct 2014 21:12:44 +0200 Message-ID: Subject: Re: Writing Jetty response to stream. To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi You can set the body as a InputStream or if you want to load from a file, then as a java.io.File etc. On Mon, Oct 6, 2014 at 7:44 PM, Tim Dudgeon wrote: > I can see how to set the jetty response as text - just set the body to the > text. > But what if there is a large amount of data? > Don't want to build it into an in-memory String. Want to write it to a > stream. > How can I do this? I need to get a handle on an OutputStream that I can > write to? > > Thx > Tim > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Writing-Jetty-response-to-stream-tp5757366.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/