The required version of the request library (2.1.1) returns output as a string rather than a buffer. Upgrading to the latest version of request (2.9.3) and explicitly specifying encoding of null in the get and thumbnails methods fixes this allowing binary data to be downloaded as expected.
The required version of the request library (2.1.1) returns output as a string rather than a buffer. Upgrading to the latest version of request (2.9.3) and explicitly specifying encoding of
null
in theget
andthumbnails
methods fixes this allowing binary data to be downloaded as expected.