Hi,

On Tue, Feb 18, 2014 at 3:50 AM, Felix Meschberger <[email protected]> wrote:
> That was my first thought, too: Nothing prevents the Binary implementation 
> from checking
> whether the InputStream is a FileInputStream and then access the FileChannel 
> from it.

Right, but then there's no easy way for the implementation to know
whether it's OK to just move the file away from the client as
suggested by Chetan. And while copying at the FileChannel level may be
a bit faster than via a normal InputStream, the benefit is minimal
compared to the overhead of spooling the upload to a temporary file.

As mentioned in the previous message, the best approach would be to
avoid the temporary file entirely.

BR,

Jukka Zitting

Reply via email to