hello, I have solved my first problem.But now problem is that I want to get path of uploaded file.I use the following command to upload files onto server: sftp.upload(new File(jTextField2.getText())); can please anybody tell me how to get the path where the uploaded file is storedin server. I need to save this file path into the database Thanks