I have small local web server based on HttpListener. The server provides files to local client application unpacking and writing files to
response.OutputStream;
but sometimes files (videos) are huge and I don't think it's a good idea to always copy all file bytes to output stream (memory). I would like to connect served file stream to response output stream something like this:
response.OutputStream = myFileStream;
but -ok- response.OutputStream
is read only so I just can write bytes - is there any way to make some kind of partial writing (streaming)?
Regards.