I follow the example of "Piping a fetch response to StreamSaver". When I download small file like 1KB, the code below works and it can console log the message "done writing". But I download bigger file like 57.7KB, readableStream.pipeTo(fileStream) never finish and the http request is not finished all the time.
I'm not sure if the write operation is blocking the reception of the data stream?Or is it something else?
I follow the example of "Piping a fetch response to StreamSaver". When I download small file like 1KB, the code below works and it can console log the message "done writing". But I download bigger file like 57.7KB,
readableStream.pipeTo(fileStream)
never finish and the http request is not finished all the time.I'm not sure if the write operation is blocking the reception of the data stream?Or is it something else?
The code: