> 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 ? >
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 Thanks, Oleg! That is exactly what I want. If I make 100 asynch posts, are they executed in sequence? Also, what if I want to cancel the posts? This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
