0

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.

Rahul Kale
  • 207
  • 1
  • 3
  • 7

1 Answers1

0

See if these examples you can solve your problem:

momomorez
  • 515
  • 5
  • 5