commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Holroyd <d...@badgers-in-foil.co.uk>
Subject Re: Efficient upload stream reading API?
Date Wed, 08 Feb 2006 13:30:53 GMT
Hiya,

Have I made a procedural misstep in attempting to discuss this here
(i.e. I should have used bugzilla?) or is everyone just really busy?

...

On Tue, Jan 31, 2006 at 09:02:31AM +0000, David Holroyd wrote:
> All,
> 
> The current FileUpload API only allows uploaded data to be read by the
> application if an intermediate buffer (i.e. DiskFileItem) is used.  It
> would be very handy if the low-level interfaces provided read access to
> the uploaded file data.
> 
> Currently, the API provided by MultipartStream is in terms of an
> OutputStream,
> 
>   int readBodyData(OutputStream output)
> 
> 
> I am proposing the addition of a method like,
> 
>   InputStream readBodyData()
> 
> 
> I've started hacking together some code to add this functionality, and
> to re-implemented the original readBodyData(OutputStream) method
> in terms of this using IOUtils.copy(int, out).
> 
> Would a patch along these lines be accepted?


dave

-- 
http://david.holroyd.me.uk/

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


Mime
View raw message