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

Categories

0 votes
234 views
in Technique[技术] by (71.8m points)

java - Check dropbox progress on large files

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

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

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...