in reply to Open Zip and send to user in http session

If you are running this on a windows server/machine, you will have to use binmode on the filehandle.
open (DEST, "<$KmlLoaderFile") || warn "kmlLoader:: Can't load file"; binmode(DEST); my @dataBuff = <DEST>;


holli, /regexed monk/

Replies are listed 'Best First'.
Re^2: Open Zip and send to user in http session
by ecuguru (Monk) on Mar 19, 2006 at 21:32 UTC
    I tried both of these. I still get a corrupt zip file.
      SOLVED.
      http://perlmonks.com/?node_id=9155 I originally searched the archives for download file, but after searching for file download, this was the only response and it worked great. I think the difference is that rather than just opening the file in binary, I'm also outputing it in binary?
      thanks!