in reply to
File corrupt when using Net::FTP
It sounds suspicious when you have
$ftp->ascii();
turned on (and not turned off) while transfering a binary ZIP file. Have you tried to stick a
$ftp->binary();
in your subs
get_the_file
and
put_the_file
?
Comment on
Re: File corrupt when using Net::FTP
Select
or
Download
Code
Replies are listed 'Best First'.
Re: Re: File corrupt when using Net::FTP
by
zby
(Vicar)
on Nov 05, 2003 at 10:25 UTC
This is exactly the kind of error this can couse. The ascii mode on Windows systems would interpret ^Z as an End Of File.
[reply]
In Section
Seekers of Perl Wisdom