aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes FTP upload with Commons.net got exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "FTP upload with Commons.net got exception" Watch "FTP upload with Commons.net got exception" New topic
Author

FTP upload with Commons.net got exception

mandlar suurla
Ranch Hand

Joined: Jun 11, 2008
Posts: 67

Problem is here when i am trying to upload it gives me exception



mandlar suurla
Ranch Hand

Joined: Jun 11, 2008
Posts: 67

Dont look the first if statement block i use the second one, plain file upload.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

Do you ever check the return code from the connect or invoke disconnect() like it tells you to do in the javadoc?


[How To Ask Questions On JavaRanch]
mandlar suurla
Ranch Hand

Joined: Jun 11, 2008
Posts: 67

no, but i will do that. Yeah the problem answer is really easy, my friend, google helped me out got this article http://cephas.net/blog/2004/05/27/commons-net-ftp-and-active-vs-pasv-connections/. But yes i dont know how the FTP really works, i used wiki but all the contents are so separated. Anyone has good guides for FTP, workflow with commands ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: FTP upload with Commons.net got exception