Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 20747 invoked from network); 16 Jul 2007 18:38:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2007 18:38:20 -0000 Received: (qmail 26874 invoked by uid 500); 16 Jul 2007 18:38:20 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 26811 invoked by uid 500); 16 Jul 2007 18:38:20 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 26800 invoked by uid 99); 16 Jul 2007 18:38:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2007 11:38:20 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=FROM_HAS_ULINE_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.196.97.90] (HELO web56901.mail.re3.yahoo.com) (66.196.97.90) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 16 Jul 2007 11:38:17 -0700 Received: (qmail 78079 invoked by uid 60001); 16 Jul 2007 18:37:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=4pCDZGIR7SRb/Dl4s2P0Puo2yMJQWsYkAR9swbVjnPYE/HmfQMMdkqDDejwWXYPaEVW2kvNBRZGBCkm2zWwpHhRdXF/dVZ3XPUjlHn+bEoggVVg/EYJwavphMlLgOGcZqZ6AltRdgqkMg0R9v8DT72fG6emyRJUzfK/zOji0iFA=; X-YMail-OSG: L8i1wRAVM1ljD.tZWNuEp_RyYOyTGCDjsKc_4snC5b8k7prh.j7uDHVqJRGw.vdldxfUAL.mj5YseuJva1QJ1OoAvRakesyX64x2dYL11xczYkoAapx1tnTtZc9oPg7g3M.R5SXfeEL1AgZvz8CgDAA- Received: from [69.140.176.216] by web56901.mail.re3.yahoo.com via HTTP; Mon, 16 Jul 2007 11:37:55 PDT Date: Mon, 16 Jul 2007 11:37:55 -0700 (PDT) From: Payam Fard Subject: Question regarding FTPClient.retrieve To: commons-dev@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <900230.77720.qm@web56901.mail.re3.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org I am using FTPClient class and would like to download a file from an FTP site. Here is what I am doing, but I cannot get it to download the file. Any help would be appreciated: ftp.connect(myHostname); ftp.login(myUsername, myPassword); File localFile = new File("C:\\test\\test.csv"); FileOutputStream outStream = new FileOutputStream(localFile.getAbsoluteFile()); boolean result = ftp.retrieveFile(remoteFilename, outStream); ftp.disconnect(); ____________________________________________________________________________________ TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org