Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The endpoint
/2/files/get_thumbnail_v2
returns application/octet. I have tried encoding it as base64 string but can't get it to display on react native application.
It sounds like you have the Dropbox side of this working, in that you're getting the 'application/octet-stream' result back from /2/files/get_thumbnail_v2 as expected. We can't provide support for using React Native though, as that's not made by Dropbox. Perhaps another developer here on the forum happens to have some code to share for this. Otherwise you'll need to refer to the documentation or support resources for that for information on using it, such as for displaying arbitrary image data like this.
I know I can display base64 in react native. But I am not sure if I am getting the right stream in the api response.
Can you clarify what you mean when you say you are "not sure if I am getting the right stream in the api response"? From your original description, it sounds like you are getting data back from the Dropbox API. That data would be the thumbnail image content for the requested image file. You may want to save that as an image file locally and open it in an image viewer to verify that it is working and returning that thumbnail image content as expected first.
I switched to using fetch instead of axios and then converted the bodyBlob to base64 which I am now able to display on the app.
Hi there!
If you need more help you can view your support options (expected response time for a 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!