0

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?

sg_rs
  • 411
  • 3
  • 13
  • What you mean by "in memory"? – seenukarthi Mar 16 '22 at 08:15
  • Yes you can send things directly from e.g an in-memory byte array, see here for example : https://stackoverflow.com/questions/61231580/uploading-byte-array-to-ftp-in-java – Arnaud Mar 16 '22 at 08:18
  • @KarthikeyanVaithilingam I mean in the RAM of my Server. Basically I will get it somewhere else and I cant store it on the local filesystem. I wan to send it directly – sg_rs Mar 16 '22 at 08:20
  • @Arnaud this is an example for an ftp client. I need code for a server that waits for incoming requests – sg_rs Mar 16 '22 at 08:22

0 Answers0