Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieving file content using FTPClient Java

Im using commons FTPCLIENT I just want the file content from the ftp server. i dont want to write it to a temporary file. Is there any way to do that. The fileoutputstream should always point to a local file.

Thanks in advance.

like image 584
Bijesh CHandran Avatar asked Dec 27 '10 11:12

Bijesh CHandran


1 Answers

Use FTPClient.retrieveFileStream(String).

like image 84
dacwe Avatar answered Sep 23 '22 09:09

dacwe