Closed klkim closed 12 years ago
In fetching thumbnail using the dbox.js, encoding problem exists. So I added a line in dbox.js.
line# 192 : ,"encoding": "binary" between "url": "https://api-content.dropbox.com/1/thumbnails/........... and } in thumbnails value.
It switch on the encoding options in "request" nodejs module(dbox/node_modules/request/main.js. - response.setEncoding(options.encoding) ).
Refer below link. http://stackoverflow.com/questions/3709391/node-js-base64-encode-a-downloaded-image-for-use-in-data-uri
resolved and published in v0.3.0. Thanks for filing the issue.
v0.3.0
In fetching thumbnail using the dbox.js, encoding problem exists. So I added a line in dbox.js.
line# 192 : ,"encoding": "binary" between "url": "https://api-content.dropbox.com/1/thumbnails/........... and } in thumbnails value.
It switch on the encoding options in "request" nodejs module(dbox/node_modules/request/main.js. - response.setEncoding(options.encoding) ).
Refer below link. http://stackoverflow.com/questions/3709391/node-js-base64-encode-a-downloaded-image-for-use-in-data-uri