Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!
Forum Discussion
wahaj-47
4 years agoExplorer | Level 3
How to display thumbnails in React Native?
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.
wahaj-47
4 years agoExplorer | Level 3
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.
Greg-DB
Dropbox Staff
4 years agoCan 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.
- wahaj-474 years agoExplorer | Level 3
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,961 PostsLatest Activity: 6 hours ago
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!