Thanks brother. I had looked at that example and was wondering how that send
technique differed from:
Part[] parts = { new FilePart(f.getName(), new
FilePartSource(f)) };
filePost.setRequestEntity(new MultipartRequestEntity(parts,
filePost.getParams()));
The FilePartSource appears to stream the request. Also, I can't quite tell
how to specify the MIME types for each respective file "part" nor a way to
specify separators.
Peace,
Scott
olegk wrote:
>
> On Fri, 2008-05-16 at 09:17 -0700, stanlick wrote:
>> Greetings --
>>
>> I am searching for a generic solution for transferring files between
>> peers
>> using HttpClient and FileUpload. I see a myriad of techniques, but would
>> really appreciate a solution that:
>>
>> 1) streams in/out (don't want to worry about OutOfMemoryErrors)
>> 2) imposes no size limits
>> 3) supports any payload
>>
>
> Please see
>
> http://hc.apache.org/httpclient-3.x/performance.html#Request_Response_entity_streaming
>
>
>> Can someone point me in the right direction? Is HttpClient 4.x the
>> preferred version? Is it still beta?
>>
>
> HttpClient 4.0 is still ALPHA. So, if HttpClient 3.x works for you,
> stick to it.
>
> Oleg
>
>
>
>> Thanks,
>> Scott
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Pattern-for-batch-file-transfers-tp17278654p17304140.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]