Receive ZIP file from API and write it to the local file system #41122
-
Hello guys. I am having a use case of receiving ZIP file from the API server and after receiving I have to write it to the local file system. Can anyone guide me in receiving ZIP file and writing it back to file system? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For questions like this one, see https://github.com/nodejs/node/blob/master/.github/SUPPORT.md#support. |
Beta Was this translation helpful? Give feedback.
-
I tried so hard and got so far in the end it does matter. LL. I just solved my own problem, feeling proud. Solution steps:
Express Server Code Example: "Will serve ZIP file when '/file' route hits" Receiver Code Example: "Will hit '/file' route and write stream to the file system" Make sure you can wrap this code under async function |
Beta Was this translation helpful? Give feedback.
I tried so hard and got so far in the end it does matter. LL. I just solved my own problem, feeling proud.
Solution steps:
Express Server Code Example: "Will serve ZIP file when '/file' route hits"
Receiver Code Example: "Will hit '/file' route and write stream to the file system"
Make sure you can wrap this code under async function