Have you tried getting the script to write the file to disk
Yes
can this file be retrieved by the clients correctly?
Yes, I've written that file to the /tmp-Dir, copied it to the HTTPD-root-directory accessed it directly and could download it just fine.
have you tried having the script simultaniously write a copy of the file and return it to the client?
No, I am using the following code:
And remember: it works fine on two out of three machines. That is what makes me wonder so much.my $tar = Archive::Tar->new; # ... # in a loop: $tar->add_files("$filename"); # ... my $data = $tar->write(); print $q->header(-type => 'application/octet-stream', -attachment => "edi.tar"); print $data;
| Regards... | Stefan |
| you begin bashing the string with a +42 regexp of confusion | |
In reply to Re: Re: CGI-Attachment with many \0's
by stefan k
in thread CGI-Attachment with many \0's
by stefan k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |