You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ganasen Gounden <gg...@CCT.ORG.ZA> on 2001/03/07 08:36:58 UTC

How do I FTP a file to Tomcat Server from a Java client program?

Hello

I need some sample code or guidance on how to FTP or copy a file to a Windows 2000 or Unix Server from within a Java client program. 
The client java program reads an ascii input text file, processes each line and then writes it out to a new ascii file using the filereader function.

I need to however transfer/ftp this file to a destination server as the next step in the program. 

I could write a batch file to ftp this file but I would like to contain the whole process within one java program for automation and maintenance benefits.

If this is not the appropriate list server for this could you also please suggest which listserver might help me in this regard.

Many thanks for your help.


Gan Gounden
City of Cape Town
Ph (021) 400-2174
Fax (021) 425-1096
Cell 083-63-59-268
e-mail: ggounden@cct.org.za




**********************************************************************
Any unauthorized use and interception of this e-mail is illegal.
If this e-mail is not intended for you, you may not copy, 
distribute or disclose the contents to anyone.  This e-mail 
does not give rise to any binding legal obligations upon the
City of Cape Town unless the City of Cape Town subsequently
confirms the content in writing non-electronically.  This e-mail
may be confidential, legally privileged or otherwise protected
by law.  Unauthorised disclosure or copying of any or all of it
may be unlawful. If you receive this e-mail in error please notify
the sender and delete the message

**********************************************************************