Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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);
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
231 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...