You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Francisco Carriedo <fc...@solaiemes.com> on 2013/04/03 15:05:39 UTC

[fileupload] - Get digest on the fly

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


Re: [fileupload] - Get digest on the fly

Posted by Francisco Carriedo <fc...@solaiemes.com>.
Hola Simone :)

I will have a look to the source to check how could this be done, I will 
inform about this issue on the dev mailing list from now on.

Ciao!

On 03/04/13 16:59, Simone Tripodi wrote:
> Hola Francisco!
>
> sounds a nice feature to be added in next release, patches are welcome!!!
>
> Hasta pronto!
> -Simo
>
> http://people.apache.org/~simonetripodi/
> http://simonetripodi.livejournal.com/
> http://twitter.com/simonetripodi
> http://www.99soft.org/
>
>
> On Wed, Apr 3, 2013 at 3:05 PM, Francisco Carriedo
> <fc...@solaiemes.com>wrote:
>
>> 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<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<us...@commons.apache.org>
>> For additional commands, e-mail: user-help@commons.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [fileupload] - Get digest on the fly

Posted by Simone Tripodi <si...@apache.org>.
Hola Francisco!

sounds a nice feature to be added in next release, patches are welcome!!!

Hasta pronto!
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/


On Wed, Apr 3, 2013 at 3:05 PM, Francisco Carriedo
<fc...@solaiemes.com>wrote:

> 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<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<us...@commons.apache.org>
> For additional commands, e-mail: user-help@commons.apache.org
>
>