hi,
i am using the latest free version of edtFTPj and cannot seem to upload files/data as stream...
the code is...
FtpServer s = new FtpServer(new IpAddress("192.168.2.2"), "test.org", "dumb", "dummer", "/tmp/gwbush");
FileTransferClient ftp=s.ftp();
OutputStream fout = s.ftp().uploadStream("/tmp/test.gz");
//GZIPOutputStream gout = new GZIPOutputStream(fout);
String t = "Hello from terminatore the reubenator";
fout.write(t.getBytes());
fout.flush();
fout.close();
s.upload("C:\\drivez.log", "/tmp/ftptest/drivez.log");
ftp.disconnect();
ftp=null;
....creates the /tmp/test.gz file on the remote host but does not copy any bytes in to it. can transfer files normally!!
please help,
thanks in advance!