Uploading file without multipart/form-data (server to server)

巧了我就是萌 提交于 2019-12-02 01:27:32

Answering this since I found what I was looking for.

@npcode is correct. I didn't need to specify any encoding and I was able to work directly with Buffer object and I got it working.

I am now using request npm module which takes Buffer objects in body. My confusion arised from the rest client I was using initially which was mojito platforms rest client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!