Download: only write the number of bytes read to the output.