I am using FTPClient class, It works fine when I create connection of FTPClient and use it in same method,
But the problem comes when I create connection of FTPClient in one method and pass this object to another method then it throws exception says could not connect to FTP server.
Please help, thanks in advance.