Uploading files Don't get a regular response response?

I am trying to upload a 20 MB video file to the cloud using the http put method. The file is loaded as an array of bytes. To show the progress of the download, I add a progress callback with the entity. But now I get a callback response after downloading the full file and 100.00 response.

How to get a callback after every 10kb download?

Here is my code:

  byte[] videoBytes = ous.toByteArray();
  httput.setEntity(new ByteArrayEntity(videoBytes));

  httput.setEntity(new ProgressHttpEntityWrapper(httput.getEntity(), progressCallback));
+4
source share

All Articles