Dasun
Dasun

Reputation: 612

Can we transfer file from SFTP to server through spring cloud data flow?

My requirement is to get a file from SFTP and make it available client to download. I am forcefully asked to do that using spring cloud data flow.

In the documentation, I saw that there is an SFTP to the JDBC File Ingest tutorial (https://dataflow.spring.io/docs/recipes/batch/sftp-to-jdbc/).

So my question is can we transfer a file through spring cloud data flow rather than reading the file and inserting it into the databae?

Thanks, Dasun.

Upvotes: -1

Views: 445

Answers (1)

dturanski
dturanski

Reputation: 1723

Yes you can. It’s similar to the sftp to jdbc example which downloads the file to a shared file system from which the batch job reads it. You can create a simple pipeline like sftp | s3 or sftp l file or sftp l sftp, depending on your specific use case.

Upvotes: 0

Related Questions