I am trying to upload a 20mb video file to cloud using http put method. File is uploading as byte array format. To show the progress of upload, I add progress callback with entity. But now I'm getting the call back response after uploading the full file and response show 100.00.
How do I get the callback after in every 10kb uploading?
Here is my code:
byte[] videoBytes = ous.toByteArray();
httput.setEntity(new ByteArrayEntity(videoBytes));
httput.setEntity(new ProgressHttpEntityWrapper(httput.getEntity(), progressCallback));