Forum Discussion

Arun_Bishwa's avatar
Arun_Bishwa
Explorer | Level 3
8 years ago
Solved

What is an api of dropbox to get content any files like pdf file , rtf file and etc?

Hello All,   I am looking for v2 api to give only content of any files because when i use v2 api like download to get file using java, in response i would get content along with extra details like ...
  • Greg-DB's avatar
    Greg-DB
    8 years ago
    The /2/files/download endpoint works the same way for all file types, in that it will just return the full file data it has for the requested file, in the HTTP response body. In these samples you're just printing out the raw data as text, but generally you'd want to open them in the relevant viewers, e.g., a PDF reader for PDF files, or a rich text reader/editor for RTF files.

    Each of your screenshots shows the raw data for the files you're requesting. If the file contains more data than you're expecting, you'll need to look in to why that data was uploaded to Dropbox in the first place.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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, Facebook or Instagram.

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!