I am developing a nodejs application in which I have a http server who responds to incoming POST commands. I do need to return an entire binary file. I can do it by using
response.end(file, 'binary); // where 'file' is the entire byte array
but I don't want to store the whole file in memory, I do want to send it by chunks. Is there any other way for doing this? I have googled without success.
Thanks in advance,