@@ -0,0 +1,1485 @@
+package lockard;%0Aimport java.io.FileInputStream;  %0Aimport java.io.IOException;  %0Aimport java.net.SocketException;  %0Aimport org.apache.commons.net.ftp.FTPClient;  %0Apublic class UplF%7B%0A  public static void main(String args%5B%5D) %7B  %0A  %0A  // get an ftpClient object  %0A  FTPClient ftpClient = new FTPClient();  %0A  FileInputStream inputStream = null;  %0A  %0A  try %7B  %0A   // pass directory path on server to connect  %0A   ftpClient.connect(%22web2.gigahost.dk%22);  %0A  %0A   // pass username and password, returned true if authentication is  %0A   // successful  %0A   boolean login = ftpClient.login(%22*%22, %22*%22);  %0A  %0A   if (login) %7B  %0A    System.out.println(%22Connection established...%22);  %0A    inputStream = new FileInputStream(%22c:/Chrysanthemum.jpg%22);  %0A  %0A    boolean uploaded = ftpClient.storeFile(%22lockard2.com/Vsos%22,inputStream);  %0A    if (uploaded) %7B  %0A     System.out.println(%22File uploaded successfully !%22);  %0A    %7D else %7B  %0A     System.out.println(%22Error in uploading file !%22);  %0A    %7D  %0A  %0A    // logout the user, returned true if logout successfully  %0A    boolean logout = ftpClient.logout();  %0A    if (logout) %7B  %0A     System.out.println(%22Connection close...%22);  %0A    %7D  %0A   %7D else %7B  %0A    System.out.println(%22Connection fail...%22);  %0A   %7D  %0A  %0A  %7D catch (SocketException e) %7B  %0A   e.printStackTrace();  %0A  %7D catch (IOException e) %7B  %0A   e.printStackTrace();  %0A  %7D finally %7B  %0A   try %7B  %0A    ftpClient.disconnect();  %0A   %7D catch (IOException e) %7B  %0A    e.printStackTrace();  %0A   %7D  %0A  %7D  %0A %7D  %0A%0A%7D%0A

Create UplF.java