Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
drewbiedu
8 years agoExplorer | Level 4
Read file contents
I'm sure this is answered somewhere else, but clearly I'm not Googling the right thing. I'm working on an android app (java) and I'm trying to read the contents of a file without downloading it (need...
- 8 years ago
To access the file content for a file using the API v2 Java SDK, you should use the download method. That gives you a DbxDownloader which offers a few options for using the file data; downloading it to a local file isn't required.
You can find an example Android app for the API v2 Java SDK here. For instance, it uses the download method here.
Greg-DB
Dropbox Community Moderator
8 years agoTo access the file content for a file using the API v2 Java SDK, you should use the download method. That gives you a DbxDownloader which offers a few options for using the file data; downloading it to a local file isn't required.
You can find an example Android app for the API v2 Java SDK here. For instance, it uses the download method here.
- drewbiedu8 years agoExplorer | Level 4
Perfect, thanks! I can't tell you how many times I've scoured that page trying to figure out a way to do it. I need to stop developing so late at night
About 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!