Forum Discussion

Joel S.29's avatar
Joel S.29
New member | Level 1
11 years ago

GET image file does not return binary

How do I get image file contents to download as binary? I wrote a simple wrapper around the Dropbox API endpoints in NodeJS and cannot figure out how to do this. File type is always json and thus the contents of the image file are garbage.

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    I'm not sure I understand the issue you're seeing. The /files (GET) endpoint just returns the raw data for the requested file in the body of the response. Can you share your code, along with a sample request and response?

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!