should I use ftp for this?

M

moo moo

I need to allow my web site visitors to upload an image. The image will
be stored on a different server to my web server (different domain in
fact). I was planning to programmatically ftp the image files over from
the web server to the image server, in the servlet responding to the
upload request. Ive not used ftp like this before and Im wondering
whether this is a good idea or not (alternative is to use HTPP I guess
but I much prefer ftp solution if possible)

If it is ok, as connecting to the ftp server takes time I was thinking
about managing a pool of client ftp connections. Is this going to be
possible?


b.t.w. Ive opted for edtFTPj FTP java client :
http://www.enterprisedt.com
 
Y

yzzzzz

moo said:
I need to allow my web site visitors to upload an image. The image will
be stored on a different server to my web server (different domain in
fact). I was planning to programmatically ftp the image files over from
the web server to the image server, in the servlet responding to the
upload request. Ive not used ftp like this before and Im wondering
whether this is a good idea or not (alternative is to use HTPP I guess
but I much prefer ftp solution if possible)

Sounds fine to me, FTP is much more reliable than HTTP for file
transfer. I you have the right lib, it should only take a few lines of code.
 

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,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top