title: Spring batch Writer to write files directly to ftp location,
body: <p>I am using spring batch to read,process,writer and create files directly from FTP location.
  I could able to read files using below configration.</p>
  
  <pre><code>&lt;bean id="cvsFileItemReader2" class="org.springframework.batch.item.file.FlatFileItemReader"&gt;
      &lt;!-- Read a csv file --&gt;
  &lt;property name="resource" 
  value="ftp://user123:12496@ftp.myftp.net/Ftpfiles/it/se/dev/expfiles/ABEXCEP.CSV"/&gt;
  </code></pre>
  
  <p>But the same i am trying to write using the FlatFileItemWriter uaing below config</p>
  
  <pre><code>&lt;bean class="org.springframework.batch.item.file.FlatFileItemWriter"&gt;
  &lt;property name="resource" value="ftp://user123:12496@ftp.myftp.net/Ftpfiles/it/se/dev/expfiles/ABFIXED.TXT" /&gt;
  </code></pre>
  
  <p>Getting the following exception</p>
  
  <pre><code>java.io.FileNotFoundException:
    URL [ftp://user123:12496@ftp.myftp.net/Ftpfiles/it/se/dev/expfiles/ABFIXED.TXT]
    cannot be resolved to absolute file path because it does not reside in the file system:
    ftp://user123:12496@ftp.myftp.net/Ftpfiles/it/se/dev/expfiles/ABFIXED.TXT
    at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:205)
  </code></pre>
  
  <p>Appreciate any help on this.. Thanks</p>