阅读背景:

node.js将带有http.request的文件下载到另一个api

来源:互联网 

i'm trying to write file to the file system with data sent as a response of http.request. When i call the function file is created on desktop but it contains only text: [Object object]. Question is how do i get the actual file data from http.request response and how do i write it to a file. When i directly call the api from rest client like postman, the file downloads perfectly, but when node sends the call it doensn't work. Here is my code:i'm trying to write file to the file system wit




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: