检查大型文件的保管箱进度 [英] Check dropbox progress on large files

查看:65
本文介绍了检查大型文件的保管箱进度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查大型文件的保管箱进度?

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来实现
InputStream 28java.awt.Component,%20java.lang.Object,%20java.io.InputStream%29 rel = nofollow> 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆