'Is there a way to "send" a file over FTP from a server without exposing the local file system?

I have my desired file in memory on my server. I need to send it over FTP, i cant use anything else for it. I dont want to store the file on my sever and then expose the folder. Is there a way to send over FTP from memory?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source