Hi, I think exactly the same problem has been discussed in an earlier thread: http://www.nabble.com/visualizing-upload-download-status-in-a-statusbar-to19685137.html#a20507255. Please post your solution!
Thanks Marcel 2009/3/11 Eugeny N Dzhurinsky <[email protected]> > On Wed, Feb 18, 2009 at 03:05:24PM +0100, Manuel Domínguez Alvera wrote: > > But how can I count the bytes that have been transferred? What Class? > > What Method? > > We used custom socket factories, whose return a subclass of Socket, capable > of > returning an instance of Stream, counting bytes read from an underlying > stream. So we were able to calculate throughput. > > You will need to create the custom socket factory and simply pass it to > appropriate protocol in HttpClient. Please take care of this (sources/docs) > and if you would still have any questions - come back and ask ;) > > Hope that helps. > > -- > Eugene N Dzhurinsky >
