That was it Rory! Thanks a ton for your reply!

On 4/4/07, Rory Winston <[EMAIL PROTECTED]> wrote:

Billy

It may be that the FTP server does not recognize the STOU command. Try
calling storeFile() instead of storeUniqueFile().

Cheers
Rory

[EMAIL PROTECTED] wrote:

>
> ------=_Part_65366_20669757.1175705604396
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> Sorry for the duplicate posts to those of you that have received this
> several times. I didn't adhere to the naming conventions in the subject
line
> which someone on this list was kind enough to point out.
>
> Can someone tell me if they see any obvious issues with this method. The
> file is never uploaded to the server and after checking the reply
> string/code, I'm getting a 500 command unrecognized.
>
> <code>
> public boolean put(String localFilename) {
>     try {
>         FTPClient client = new FTPClient();
>         client.connect("10.4.1.100");
>         client.enterLocalPassiveMode();
>         client.setFileType(FTPClient.BINARY_FILE_TYPE);
>         client.login("un", "pw");
>
>         client.storeUniqueFile(filename, local); // Returns a status
code
> 500 (command unrecognized)
>
>     } catch(SocketException sc) {
>         sc.printStackTrace();
>     } catch(IOException io) {
>         io.printStackTrace();
>     } finally {
>         client.logout();
>         client.disconnect();
>     }
> }
> </code>
>
> Thanks for any help!
>
> - Billy -
>
> ------=_Part_65366_20669757.1175705604396--
>



-----------------------------------------------------------------
Find the home of your dreams with eircom net property
Sign up for email alerts now http://www.eircom.net/propertyalerts



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to