Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in Java FTP by (120 points)
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!

1 Answer

0 votes
by (162k points)
Please post a log file.

Categories

...