How can I pipe a remote file directly to the response, without having to read the file in the memory or writing it to disk on the server? The remote file can be huge and I’m not going to do anything to the file itself. If possible I’d like to be able to set the basic headers like ‘content-type’ and ‘content-length’.
cfhttp, cffile and cfcontent require the whole remote file to be written locally on the server which doesn’t suit my use case. I wish to just pipe the stream and if a buffer is needed I wish to limit the buffer to just few MB. If Java is needed I can try to incorporate those in the CF code. TIA
charlieCF is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.