title: How to upload word, excel, jpg and zip file using Apache Commmons?
body: <p>I am using <strong>Apache Commons</strong> to upload a local files to FTP using <code>storeFile()</code> method.  It works only for .txt files but not for any other files like MS-word, excel, images, zip fiels etc.  The file is uploading but content is not there in that file.</p>
  <h3>Code</h3>
  <pre><code>   FileInputStream fis = null;
     fis = new FileInputStream(localFile);
     boolean res = jBakFTPsyncUtility.client.storeFile(localFileName, fis);
     fis.close();
  </code></pre>
  <p>Can anybody help me in this regard?</p>