Originally posted by Joel Peach:
[B]Thanks Rick,
You are correct, there is no direct FTP protocol support class in java. All of the basic components you need are there: Threading, Socket I/O, File I/O, but you'd still need to write the control logic on your own. If you're feeling ambitious, the IETF RFC specification that defines FTP can be found at:
http://www.faqs.org/rfcs/rfc959.html
[end Quote]
I found it really amazing that we didn't have any FTP classes in java about 8 months ago, when I had to write some FTP software. Anything in the works at all for future releases?? All I had was a week or two, of which I spent a few days to find what support Java gives, finally I used the Sun.net.ftp.FtpClient class to get the job done. I know these are not supported anymore, but we have the jars, so we can maintain it ourselves.
It was not just me, there were a bunch of people on many forums asking for this same functionality. I think this is definitely a short coming of Java.
Savithri
[This message has been edited by Savithri Devaraj (edited December 12, 2001).]
Originally posted by sankarsv:
In http, call to connect() method id not required....I donno in ftp. But u can still try the same....
Originally posted by Carl Trusiak:
[B]Yes there is. You have to understand a little about the URL it is expecting.
ftp://username[email protected]/full/path/to/file/filename;type=x
type for getInputStream can be 'd' for directory listing, 'a' for Ascii down load and 'i' for Binary download.
type for getOuputStream can be 'a' for ascii upload and 'i' for binary upload.
So, to put a text file you can use code similar to the following
[/B]
Originally posted by Jeff Holmes:
Thanks, I appreciate the effort to figure this out, and you won't be forgoten. Thanks again, Jeff
[This message has been edited by Jeff Holmes (edited November 01, 2000).]