If I’ve got an in and out stream and I want to copy the in stream to the outstream until it’s exhausted (in this case downloading a file to disk), whats the simple way to do it?
Maybe the answer is staring me in the face. But it looks like i might need to go via a buffer, maybe a memory block which I reset each time I use it?