How to get a progress bar for a file upload with Apache HttpClient 4?
I introduced a derived FileEntity that just counts the written bytes. It uses OutputStreamProgress that does the actual counting (kind of a decorator to the actual OutputStream). The advantage of this (and decoration in general) is that I do not need to copy the actual implementation, like the the actual copying from the file stream … Read more