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
vildantursic
7 years agoExplorer | Level 4
Thumbnails
Hi, I am using dropbox V2 API (current version from npm 3.0.4). Working with VueJS / Nuxt. And I am trying to get thumbnails from dropbox folder, This console message I am getting (Dropbox-sdk.min....
Greg-DB
7 years agoDropbox Staff
Regarding the TypeError issue, please refer to this recent JavaScript SDK issue for more information and a workaround:
https://github.com/dropbox/dropbox-sdk-js/issues/172
(Note that filesDownload and filesGetThumbnail download data in the same way.)
The ".tag" value is expected. That identifies the type of the entry, and will be one of "file", "folder", or "deleted", not the file type. For the file type, please refer to the file extension in the path or name.
https://github.com/dropbox/dropbox-sdk-js/issues/172
(Note that filesDownload and filesGetThumbnail download data in the same way.)
The ".tag" value is expected. That identifies the type of the entry, and will be one of "file", "folder", or "deleted", not the file type. For the file type, please refer to the file extension in the path or name.
- vildantursic7 years agoExplorer | Level 4
Hi again, I fixed that issue, but I have one more question that I couldn't find answer for.
filesDownload or filesGetThumbnail returns object with fileBinary property. I can't in any way I tried convert that data to image.
Most of the time I get this exception
DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
Unless I do this
... img.src='data:image/jpeg;base64,' + window.btoa(unescape(encodeURIComponent(response.data.fileBinary))); ...
But again it is unreadable
And here is screenshot of original fileBinary data and converted data with code above
- Greg-DB7 years agoDropbox StaffIt looks like you opened another thread for this, so I'll follow up there:
https://www.dropboxforum.com/t5/API-support/Binary-to-image/m-p/264555
- Greg-DB7 years agoDropbox StaffThe original `t.buffer is not a function` issue should be fixed in the latest version of the library, currently v4.0.3.
- rajshree19966 years agoExplorer | Level 3
not able to convert fileBinary to url in nodejs.
- Greg-DB6 years agoDropbox Staff
rajshree1996 If you need help using the Dropbox API/SDK, please open a new thread with more details about the issue or question. Thanks!
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!