检查大型文件的保管箱进度 [英] Check dropbox progress on large files
问题描述
如何检查大型文件的保管箱进度?
How to check dropbox progress on large files?
我正在尝试使用core-api和Java将1.66 gb文件上传到保管箱。 非常需要很长时间(将近30分钟),我想查找上传进度。
这是我要上传的代码:
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);
推荐答案
也许可以通过包装<$ c来实现
ProgressMonitorInputStream
。但是请确保您不阻塞事件调度线程,否则它将冻结直到完成。
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.
请参见如何使用进度栏了解详情。
这篇关于检查大型文件的保管箱进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!