<div dir="ltr"><div>Hello,</div><div><br></div><div>I am using `file` to get the mime-type of blobs of data streamed to me. I open a process and a pipe, and a pass the bytes as they come to me to `file`. Then I close the pipe and wait for `file` to return me a mime-type.</div><div><br></div><div>This works wonderfully, except, I'm worried, that file may be collecting into RAM the entire contents of the buffer as they are being piped.<br><br></div><div>For example, if I am given an 180GiB zip file, and I keep feeding those bytes to the pipe, will it blow up my RAM? Or does `file` employ something cleverl; even if just writing to the file system, or perhaps working on chunks and forgetting the past?<br><br></div><div>Thanks for your help!<br><br></div><div>Arif Driessen<br></div></div>