On Thu, 2014-01-09 at 19:47 +0000, Boxer, Aaron wrote: > Hello! > > I have a CD with about 1000 files on it. I need to upload them (via WebDAV > client). > > Currently, I go one by one through the files, and put to the server using > InputStreamEntity . > > IS there a better way? Can I use an NIO buffer, to avoid copy into user > space ? > > Thanks! > Aaaron >
This is one (rather few) cases where HttpAsyncClient may do a better job than blocking HttpClient due to its support for zero copy uploads / downloads http://hc.apache.org/httpcomponents-asyncclient-4.0.x/ http://hc.apache.org/httpcomponents-asyncclient-4.0.x/httpasyncclient/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
