You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
wahaj-47
3 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
Explorer | 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
3 years agoDropbox Staff
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.
- wahaj-473 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,910 PostsLatest Activity: 3 days agoIf 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!