I want to create and send a csv file to a remote ftp server,i am using CSVWriter
from Apache Commons
.
At present, I am creating a local temp file, wrapping this file around an Inputstream
, and then uploading this stream to remote ftp server using client.store(<InputStream>,<Filename>)
method. The problem here is it is creating a local temp file every time it is executed.
I want to get rid of this and be able to create a stream, especially csv stream directly. My main idea is to avoid creating a local temp file.