Nodejs binary http stream
Don't call req.setEncoding('binary')
.
This will convert every single chunk into strings and is mainly intended if you want to read strings from the stream. As you directly pipe the request to a file, you don't need to do it.