File transfer to FTP site

R

raj

Hi
I want transfer some files to an ftp site, (actually a specified
folder in the ftp site).
What is the easiest way to do this ??
I have downloaded various bits of code and they all seem to require
the host name as string ie "ftp.yahoo.com"
ie Socket s = new Socket("ftp.yahoo.com", defaultport)
I want to be able to specify an ftp url, ie
"ftp:\\194.128.10.195\myName"
and transfer files to this.

I usually programme in Smalltalk, and my knowledge of Java is limited.

Thanks for your Help
Raj
 
L

Lothar Kimmeringer

I want to be able to specify an ftp url, ie
"ftp:\\194.128.10.195\myName"
and transfer files to this.

You should look for a java-based FTP-client to be used.
Google tells you a lot of resources, e.g.
http://jvftp.sourceforge.net/
To be able to open an UrlConnection with ftp:// you need
to implement your own ConnectionHandler.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top