Schedule remote file download over FTP and process file in memory with Spring Integration
问题 I need to download a file from a remote FTP server every day and provide its contents to a class as an InputStream (or at least as byte[]) for further processing. Ideally I should also avoid any disk write. Can anyone give some advice on how to configure it with an XML or an annotation based configuration? 回答1: Spring Integration currently doesn't have a pre-configured adapter to 'stream' a file; it does, however, have an underlying component ( FtpRemoteFileTemplate ) that enables such access