Receive ZIP file from API and write it to the local file system #4896
Answered
by
feniljariwala82
feniljariwala82
asked this question in
Q&A
|
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? |
Answered by
feniljariwala82
Dec 13, 2021
Replies: 0 comments 2 replies
|
For questions like this one, see https://github.com/nodejs/node/blob/master/.github/SUPPORT.md#support. |
0 replies
|
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 |
0 replies
Answer selected by
feniljariwala82
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



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