apache commons ftpclient upload file

Out int reply; nnect(host reply tReplyCode if (!PositiveCompletion(reply) ftp.
The default type is ascii (plain text file but it should be set to binary type in order to work with any files.OutputStream of the connection (those methods which return an OutputStream).Set file type to be transferred to binary.Recently I started creating video tutorials too, so do check out my videos.FTP is built on a client-server architecture and uses separate iso hunter x hunter control and data connections between the client and the server.It would return true if successfully completed, or false otherwise.
Notes: we should check return value of the storeXXX and completePendingCommand method to ensure the upload is completed successfully.
Why not reach little more and connect with me directly.
Create an InputStream for the local file.Google Plus, Facebook or, twitter.Call completePendingCommand method to complete transaction.Also once you are done with uploading all the files, close the connection to server and release resources.InputStream of the local file (those methods which have an InputStream as a parameter).This method must be called before a file transfer starts.