Check dropbox progress on large files

随声附和 提交于 2019-11-27 08:26:29

问题


How to check dropbox progress on large files?

I'm trying to upload a 1.66 gb file to dropbox using core-api and Java. It is taking an extremely long time, (nearly 30 min) and I want to find the progress of the upload. This is my code for uploading:

DbxEntry.File uploadedFile = client.uploadFile("/BIGFILE.zip", 
    DbxWriteMode.add(), finalInputFile.length(), inputStream);

回答1:


Perhaps it can be achieved by wrapping the InputStream in a ProgressMonitorInputStream. But make sure you do not block the Event Dispatch Thread, or it will freeze until completion.

See How to Use Progress Bars for details.



来源:https://stackoverflow.com/questions/20873570/check-dropbox-progress-on-large-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!