Skip to content

Receive ZIP file from API and write it to the local file system #41122

Discussion options

You must be logged in to vote

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:

  1. You need to serve your file as a stream in the response "In my case it is a express server which serves ZIP file as a stream"
  2. You need to write stream file to the local file system

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by feniljariwala82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants