sintaxi/node-dbox — Issue #10: get binary thumbnail
Author: klkim
Created: 2012-01-18 06:19:27+00:00
State: open

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