sintaxi / dbox

NodeJS SDK for Dropbox API (THIS LIBRARY IS OBSOLETE!!)
514 stars 91 forks source link

get binary thumbnail #10

Closed klkim closed 12 years ago

klkim commented 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

sintaxi commented 12 years ago

resolved and published in v0.3.0. Thanks for filing the issue.