dear sir,

i am written ftp connection with my microcontroller.my microcontroller ip is
192.168.2.20.i have written code,but not able to transfer file from pc to micro
controller.any help could be useful

this my code

try {
// TODO add your handling code here:
FTPClient client = new FTPClient();
FileInputStream fis = null;
try {
client.connect("192.168.2.20");

System.out.println("connected to sc23 microcontroller");
} catch (SocketException ex) {
Logger.getLogger(upload.class.getName()).log(Level .SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(upload.class.getName()).log(Level .SEVERE, null, ex);
}
try {
client.login("ftp", "ftp");
System.out.println("connection sucess");
} catch (IOException ex) {
Logger.getLogger(upload.class.getName()).log(Level .SEVERE, null, ex);
}
String filename = filetext.getText();
try {
fis = new FileInputStream(filename);

} catch (FileNotFoundException ex) {
Logger.getLogger(upload.class.getName()).log(Level .SEVERE, null, ex);
}
try {
client.storeFile(filename, fis);
System.out.println("file upload sucess");
} catch (IOException ex) {
Logger.getLogger(upload.class.getName()).log(Level .SEVERE, null, ex);
}
client.logout();

try {
fis.close();
} catch (IOException ex) {
Logger.getLogger(upload.class.getName()).log(Level .SEVERE, null, ex);
}
} catch (IOException ex) {
Logger.getLogger(upload.class.getName()).log(Level .SEVERE, null, ex);
}


thank u
santhosh babu