Could not write file on ftp server using ftpclient in java
I m read file on ftp server and write to that data into another file but i read data properly but coulnt write the file on ftp server plz help me thanks
I retrieve files using retrieve file 
but can not storefile using storefile function

my code is    

    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import org.apache.commons.net.ftp.FTPClient;
    import org.apache.commons.net.ftp.FTPFile;
    public class FtpDemo {
    public static void main(String args[]){		
    FTPClient client=new FTPClient();		
    try
            		{
        			if(client.isConnected()){
        				client.disconnect();
        				Boolean isLog=client.logout();
        				System.out.println(isLog);
        			}
        			client.connect("ftp.drivehq.com");
        			Boolean isLogin=client.login("rashmin.javiya","bipasa");
        			if(isLogin){
        				System.out.println("Login has been successfully");
        				FTPFile[] files=client.listFiles();
        				System.out.println("Login has been successfully"+files.length);
        				for(int i=0;i<files.length;i++){
        					if(files[i].getName().equals("rajesh.txt")){
        						System.out.println("match has been successfully");
        						InputStream is=client.retrieveFileStream("/rajesh.txt");
        						BufferedReader br=new BufferedReader(new InputStreamReader(is));
        						String str;
        						String content="";
        						str=br.readLine();
        						while(str!=null){
        							content+=str;
        							str=br.readLine();
        						}
        						System.out.println(content);
        						Boolean isStore=client.storeFile("/rajesh.txt",is);
        						System.out.println(isStore);
        					}
        				}
        			}
        			
        		}
        		catch(Exception e){
        			System.out.println(e.getMessage());
        		}
        	}
    }
    

Could not write file on ftp server using ftpclient in java
===

I m read file on ftp server and write to that data into another file but i read data properly but coulnt write the file on ftp server plz help me thanks
I retrieve files using retrieve file 
but can not storefile using storefile function

my code is    

    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import org.apache.commons.net.ftp.FTPClient;
    import org.apache.commons.net.ftp.FTPFile;
    public class FtpDemo {
    public static void main(String args[]){		
    FTPClient client=new FTPClient();		
    try
            		{
        			if(client.isConnected()){
        				client.disconnect();
        				Boolean isLog=client.logout();
        				System.out.println(isLog);
        			}
        			client.connect("ftp.drivehq.com");
        			Boolean isLogin=client.login("rashmin.javiya","bipasa");
        			if(isLogin){
        				System.out.println("Login has been successfully");
        				FTPFile[] files=client.listFiles();
        				System.out.println("Login has been successfully"+files.length);
        				for(int i=0;i<files.length;i++){
        					if(files[i].getName().equals("rajesh.txt")){
        						System.out.println("match has been successfully");
        						InputStream is=client.retrieveFileStream("/rajesh.txt");
        						BufferedReader br=new BufferedReader(new InputStreamReader(is));
        						String str;
        						String content="";
        						str=br.readLine();
        						while(str!=null){
        							content+=str;
        							str=br.readLine();
        						}
        						System.out.println(content);
        						Boolean isStore=client.storeFile("/rajesh.txt",is);
        						System.out.println(isStore);
        					}
        				}
        			}
        			
        		}
        		catch(Exception e){
        			System.out.println(e.getMessage());
        		}
        	}
    }
    
