Re: Java Applet saving results on home server



On Thu, 14 Jun 2007 11:08:59 -0000, rizwindu wrote:
I can open a file stream and save one file to the server, but if I try
and save a second file it doesn't work.

You must use ftp.completePendingCommand() after each file (this is
mentioned in the docs for storeFileStream()).

You should probably use ftp.getReplyCode() and check for a positive
result in several places as well (e.g. after logging in). Have a look
at the example in the description of completePendingCommand().

/gordon

--
.