Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.3k views
in Java FTP by (260 points)
RHLinux server, and RHLinux client
log4j is used to log some running, debugging, and heart-beating logs.
as the subjuct, that multi-line text log file becomes a one-line file :shock: when ftped to client

And well, the file content is complete and is just lacking all the 'return enter's

waiting for you guys' help~

3 Answers

0 votes
by (162k points)
Are you doing an ASCII transfer?

RHLinux server, and RHLinux client
log4j is used to log some running, debugging, and heart-beating logs.
as the subjuct, that multi-line text log file becomes a one-line file :shock: when ftped to client

And well, the file content is complete and is just lacking all the 'return enter's

waiting for you guys' help~
0 votes
by (260 points)
Sure~

ftp.setType(FTPTransferType.ASCII);


Should I try BINARY?~
thanks

Are you doing an ASCII transfer?

RHLinux server, and RHLinux client
log4j is used to log some running, debugging, and heart-beating logs.
as the subjuct, that multi-line text log file becomes a one-line file :shock: when ftped to client

And well, the file content is complete and is just lacking all the 'return enter's

waiting for you guys' help~
0 votes
by (260 points)
DONE :P
I turned to BINARY type, and got exactly the same multi-line text file as on server.
Thanks.

P.S. when getting text files, should we use BINARY only?

Sure~

ftp.setType(FTPTransferType.ASCII);


Should I try BINARY?~
thanks

Are you doing an ASCII transfer?

RHLinux server, and RHLinux client
log4j is used to log some running, debugging, and heart-beating logs.
as the subjuct, that multi-line text log file becomes a one-line file :shock: when ftped to client

And well, the file content is complete and is just lacking all the 'return enter's

waiting for you guys' help~

Categories

...