title: Spring batch running in a docker container to Write file out of the docker container - directly to the SFTP remote server
body: <p>My spring batch job running in a docker container reads data from DB and creates a flatfile. For now the file is created inside the container but when data is big, i want to create the flatfile in the remote SFTP location.
  What would be the best way to implement this without creating a physical file inside a container.</p>