noxsradamus commented on issue #195: db.attachment.get function corrupts 
attachment
URL: https://github.com/apache/couchdb-nano/issues/195#issuecomment-577703452
 
 
   I've tried to replicate this issue by manually downloading an attachment via 
nodejs requests module. I ran in the exact same issue. With requests module can 
be solved by the steps shown [in this stackoverflow 
post](https://stackoverflow.com/questions/56758121/image-download-via-node-request-module-is-corrupt/56758284#56758284)
 .  In the end the request module requires the encoding to be passed as null. 
And second fs.writeFile requires the encoding to be set as binary. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to