Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9CA17F4F8 for ; Wed, 3 Apr 2013 13:06:13 +0000 (UTC) Received: (qmail 73284 invoked by uid 500); 3 Apr 2013 13:06:12 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 72823 invoked by uid 500); 3 Apr 2013 13:06:08 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 72787 invoked by uid 99); 3 Apr 2013 13:06:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 13:06:07 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [96.30.62.153] (HELO srv03.aloojamiento.com) (96.30.62.153) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 13:06:01 +0000 Received: from 137.red-95-121-252.dynamicip.rima-tde.net ([95.121.252.137]:43731 helo=[192.168.0.63]) by srv03.aloojamiento.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1UNNNj-001dQL-AL for user@commons.apache.org; Wed, 03 Apr 2013 15:05:39 +0200 Message-ID: <515C2923.2030008@solaiemes.com> Date: Wed, 03 Apr 2013 15:05:39 +0200 From: Francisco Carriedo Reply-To: fcarriedo@solaiemes.com Organization: Solaiemes S.L. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: user@commons.apache.org Subject: [fileupload] - Get digest on the fly Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - srv03.aloojamiento.com X-AntiAbuse: Original Domain - commons.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - solaiemes.com X-Get-Message-Sender-Via: srv03.aloojamiento.com: authenticated_id: fcarriedo@solaiemes.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org Hello there! I have been checking the mailing lists seeking a thread discussing how to get the hash of an uploaded file using Commons Fileupload and the best match i found was: http://apache-commons.680414.n4.nabble.com/Commons-FileUpload-Hash-and-Commons-IO-tc747368.html#a747369 However, the solution pointed above seems to require writing first the file to disc, something i would like to avoid. It would be great to use directly the underlying input stream for the file and pluging it to its corresponding output stream (which is not a file one). This would enable things like getting the hash on the fly through wrapping the input stream with a DigestInputStream (which is one of my needs). Will something like this be possible in following releases? Thank you very much for your attention! --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org