I am using Apache Commons to upload a local files to FTP using storeFile()
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.
Code
FileInputStream fis = null;
fis = new FileInputStream(localFile);
boolean res = jBakFTPsyncUtility.client.storeFile(localFileName, fis);
fis.close();
Can anybody help me in this regard?