title: Problem in Uploading file on ftp server using commons net 3.0 api (org.apache.commons.net )
body: <p>I am trying to save text file on ftp server which is in my drive and it has data, the file is successfully stored there, but the file is completely empty even it has data.</p>
  
  <p>The following is my loose attempt.</p>
  
  <pre><code>FTPClient client = new FTPClient();
      FileInputStream fis = null;
  
  
      try {
          client.connect("ftp.drivehq.com");
      } catch (SocketException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      try {
          client.login("zaheerkth", "mypassword");
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  
      String filename = "c://ss.txt";
      try {
          fis = new FileInputStream(filename);
      } catch (FileNotFoundException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      try {
          client.storeFile(filename, fis);
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      try {
          client.logout();
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      try {
          fis.close();
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
    }
  </code></pre>