hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: How many bytes did I get?
Date Wed, 24 Nov 2010 21:09:30 GMT
On Wed, 2010-11-24 at 14:59 +0200, John Smith wrote:
> Hello everyone!
> I describe my situation.
> 
> I download some content from some sites by HttpClient.
> I send GET request and get HttpEntity to byte array:
> 
> bEntity = EntityUtils.toByteArray(entity);
> then I save bEntity in file.
> 
> I can see content size by entity.getContentLength(),
> but I need to know how many bytes I've already got when I'm downloading content.
> 
> Has HttpClient or HttpEntity got some implements for it?
> 
> Thanks for your help!
> 

Do you want just the final total or you intermediate data for a process
indicator of some kind?

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message