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 C70D1184EF for ; Wed, 18 Nov 2015 14:13:03 +0000 (UTC) Received: (qmail 50786 invoked by uid 500); 18 Nov 2015 14:13:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 50736 invoked by uid 500); 18 Nov 2015 14:13:03 -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 50724 invoked by uid 99); 18 Nov 2015 14:13:03 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 14:13:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 95095C0FEC for ; Wed, 18 Nov 2015 14:13:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.214 X-Spam-Level: * X-Spam-Status: No, score=1.214 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tqfT4AccInET for ; Wed, 18 Nov 2015 14:12:50 +0000 (UTC) Received: from mail-ig0-f177.google.com (mail-ig0-f177.google.com [209.85.213.177]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id E008421270 for ; Wed, 18 Nov 2015 14:12:49 +0000 (UTC) Received: by igvi2 with SMTP id i2so119392967igv.0 for ; Wed, 18 Nov 2015 06:12:49 -0800 (PST) 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=ywEoMghppDNzUBiSZesTSRgbIJPvDzNmXfv9S312FuA=; b=DJhx7ZO6qN1n3+gT37UTOf6rNWnOrPCeKfJjooJSeD/Sp0nWvYYynOW6jYak6d6VBz vlql+QkoqKdo+4gq05AxxLx7lahUrkYqSYj4tvRErtvXwCs1cRkBpWM2l9IupvCYeb/s HVEEjq6mmFLRhrPrtjYyEFs0couiFq0dUgbxHMHn0I3c7Ct5QiKoo4kUj0FzRd6MbTCc F+lGBU9g6c54aVSiZmGQ2ev1wnr2G2iFzOc/FquJvB+fsw3Vi/NcjqJnayyUJX4688Ye 6NqkcGtdRHzC1xXSX5BJpvT787qe5ywkourtVzHcfbgpyO3lQs1bthpF91aCVk5WHABn 4n0Q== X-Received: by 10.50.49.68 with SMTP id s4mr7598664ign.39.1447855968760; Wed, 18 Nov 2015 06:12:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.117.85 with HTTP; Wed, 18 Nov 2015 06:12:29 -0800 (PST) In-Reply-To: <1447855206096-5774055.post@n5.nabble.com> References: <1447855206096-5774055.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 18 Nov 2015 15:12:29 +0100 Message-ID: Subject: Re: Is There a way to treat a large file? To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 You can just use FileInputStream or File etc as the parameter in your readBean then the file is not loaded into memory. Also there is the stream component but its not exactly the same as the file component http://camel.apache.org/stream On Wed, Nov 18, 2015 at 3:00 PM, kikou1984 wrote: > I m using apache Camel to treat files. > > However, i m asking if i can split a file depending on the number of byte. > > For exemple , if i have a file with a size like 1 GO, is that possible to > read it by block of 10 MO. (with a parameter that defines the size of a > block) > > Is there a component Camel EIP able to do this ? > > I have tried with stream-caching but nothing happened. > > trace="true"> > > > > > > > > > > > > > > Thanks > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Is-There-a-way-to-treat-a-large-file-tp5774055.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2