Answer the question
In order to leave comments, you need to log in
How can I batch receive a server response in JS and immediately send it to another server?
In JS, I need to get a file from one address on the server and send it to another address. The file is more than 100MB, if you just upload it to the browser's memory, the browser will start to get stupid.
It is necessary to download a file in one stream and immediately send the received data to another address in another stream.
Is there any way to implement this in javascript?
Answer the question
In order to leave comments, you need to log in
Without preliminary preparation of the receiving server (to send in pieces and he pecked them) - no. A threading mechanism
is being
prepared now , which in theory will allow it, but it does not work anywhere yet.
if both sides are controlled by you, then you can concoct your own protocol based on some websocket and send the file in pieces
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question