Node.JS - Encoding images in base64 using Buffer
Just specify "base64" as the encoding. Per the docs:
If no encoding is specified, then the raw buffer is returned.
fs.readFile(attachment, {encoding: 'base64'}, function(err, base64data) { [your API call here]});