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 [fileupload] Efficient upload stream reading API?
Date Tue, 31 Jan 2006 09:02:31 GMT
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?


thanks,
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