download file blockwise to reduce memory usage