I have create a class to create FTP connection then upload files.
However while running the script, it breaks and i get the following error:
Exception in thread "main" sun.net.ftp.FtpProtocolException: PORT :500 Illegal PORT command, EPSV ALL in effect
at sun.net.ftp.FtpClient.openDataConnection(FtpClient.java:435)
at sun.net.ftp.FtpClient.put(FtpClient.java:594)
at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:482)
at FileUpload.upload(Play1.java:114)
at Play1.main(Play1.java:56)
Java Result: 1
Edited by: zaher1988 on Nov 13, 2007 4:03 AM