How do I stream a file from one endpoint to another in Phoenix?

I would like to take a file and post it to my endpoint and then immediately stream it to another endpoint without writing that file to disk. How would I do this in Phoenix? The only thing I’ve been able to find so far is about using Plug.Upload, but that places the binarydata in a temporary folder which totally defeats the purpose of what I’m trying to accomplish. Basically I need to send a file across multiple endpoints without touching a disk until it reaches the final endpoint. This could range between 3 endpoints to 5 endpoints.

For the stream source, you would write a stream resource around your Conn using read_body/2 Plug.Conn — Plug v1.12.1

Stream resources: Stream — Elixir v1.12.3