We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Adi4
2 years agoExplorer | Level 3
Want to perform Download Operation
Hi everyone!
I want to perform download operation but it is only give information about file
I use this :
try {
outputViews.write(documentUtility.newDocument(client.files().download(filePath)));
} catch (DbxException e) {
throw new RuntimeException(e);
}
I want to perform download operation. If their any other way to perform or if their any need to changes please help in this
Thank you!
2 Replies
- Здравко2 years agoLegendary | Level 20
Hi Adi4,
Keep in mind that download method, you're using, returns DbxDownloader object representing the entire response, not directly the content! This object contains the file metadata as well as stream usable for fetch the actual file's content. As seems, you handle object as data - something that stringify current object state (usually the metadata).
Hope this gives direction.
- Greg-DB2 years ago
Dropbox Community Moderator
Adi4 Здравко is correct; that download method returns a DbxDownloader, not the file data directly. Refer to the linked documentation for more information on using that functionality.
About Discuss Dropbox Developer & API
Make connections with other developers814 PostsLatest Activity: 3 days ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!