FTP Problem
hi all ,
i wrote a program that send File to ftp server .
the Problem when i Send a sound file . when I open the file from the Ftp server or download it the file open but there is no sound appear.
here is the the function that send the ftp file :
public void sendFile(String IP, String filePath,String userName,String password,String destinationPath , String fileName) throws Exception {
try{
FileInputStream in = new FileInputStream(new File(filePath));
FTPClient ftp = new FTPClient(); //define new ftp client.
if (in != null) {
ftp.connect(IP,ftp.getDefaultPort()); // connect to the host
}
try {
ftp.login(userName,password);//login to the host by the user name and password
} catch(Exception e) {
}
ftp.storeFile(fileName,(InputStream)in); // upload the file in the directory.
ftp.logout();//log out from the host
//in.close();// Close the connection to the stream file.
}
finally{
}
}
i am using the Apachee API
Please help me
Message was edited by:
Husam
Message was edited by:
Husam

