in reply to Re: CRC Error on ZIP Files
in thread CRC Error on ZIP Files
thanks for your reply !
Warnings seem to be disabled somehow, since I am not receiving any of these
when running the script. Yet I am aware of the fact, that I should use "strict".
I must admit that I did not get rid of the bad habit of not declaring my
variables throughout all these years ...
To reply to your question: I think (!) I am not using FTP, since I am offering
and sending the file through the recipients browser. For that I am switching binary
mode on. Here is the critical code of the prescript running the download.
sub download { use CGI; $html=new CGI; print $html->header(-type => 'application/octet-stream', -attachment = +> $_[1]); open($peunter, "<", $_[0].$_[1]); binmode($peunter); # while (read($pointer,$bytes,1024)) { # print $bytes; # } @data = <$peunter>; close($peunter); print "@data"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CRC Error on ZIP Files
by Corion (Patriarch) on Mar 01, 2014 at 18:03 UTC | |
by SearchigPerl (Acolyte) on Mar 01, 2014 at 19:22 UTC | |
by Corion (Patriarch) on Mar 02, 2014 at 06:28 UTC | |
|
Re^3: CRC Error on ZIP Files
by graff (Chancellor) on Mar 01, 2014 at 19:56 UTC | |
|
Re^3: CRC Error on ZIP Files
by aitap (Curate) on Mar 02, 2014 at 11:37 UTC | |
|
Re^3: CRC Error on ZIP Files
by ww (Archbishop) on Mar 01, 2014 at 17:56 UTC | |
by SearchigPerl (Acolyte) on Mar 01, 2014 at 18:59 UTC |