commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cole" <sc...@camsbycbs.com>
Subject Re: FTP library.
Date Tue, 06 Oct 2009 16:13:29 GMT
    OutputStream output = new FileOutputStream(localFilename);
    ftpsClient.retrieveFile(remoteFilename, output);
    output.close();

----- Original Message ----- 
From: "Alan Grimes" <agrimes@speakeasy.net>
To: "Commons Users List" <user@commons.apache.org>
Sent: Tuesday, October 06, 2009 11:52 AM
Subject: FTP library.


> I've been trying to grok the NET/FTP library for several hours now and
> I've only met with frustration so far. It's really quite remarkable how
> well the documentation explains how to do practically anything under the
> sun to a FTP archive *EXCEPT DOWNLOAD A FILE*. That's right, I can't
> figure out how one is supposed to download a file. I can't find any
> methods such as "getObjectBits" or "downloadFileText", or any examples
> that involve downloading a file. There are no objects such as
> FTPDataStream. FTPFile seems to be useless for anything other than
> accessing file attributes. This is certainly a major documentation if
> not design problem!!! =(
> 
> 
> -- 
> New president: Here we go again...
> Chemistry.com: A total rip-off.
> Powers are not rights.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message