On Sun, 2006-09-10 at 23:34 -0700, Mark Diamond wrote:
> I need to uploaded large amounts of data (potentially > 1.5 gig) to a web
> service. I want to use the Postmethod/MultipartRequestEntity, but the issue
> is, that I want to stream the data as I generate it. I cannot afford (due to
> potential disk space and mem size issues) to write it to disk first or to
> create a large string (so FilePart and StringPart are not helpful). Any
> advice is much appreciated.. including approaches other than Multipart.
> 
> Regards,|
> Mark

Mark,

My recommendation would be to implement a custom RequestEntity.
RequestEntity interface represents an arbitrary entity capable of
generating content on-fly and streaming it out using the OutputStream
interface. You can device any serialization / deserialization protocol
that suits your application best.

Hope this helps

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to