Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: File corrupt when using Net::FTP

by Roger (Parson)
on Nov 05, 2003 at 05:29 UTC ( [id://304629]=note: print w/replies, xml ) Need Help??


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?

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://304629]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found