Source of file binary_write.htm:
<%
use File::Basename;

if($Request->QueryString('type') eq 'gif') {
    $Response->{ContentType} = 'image/gif';
    open(FILE, 'test.gif') || die "can't open test.gif";
    binmode FILE;
    $/ = undef;
    my $data = <FILE>;
    $Response->{ContentLength} = length $data;
    $Response->Clear;
    $Response->BinaryWrite($data);
    $Response->End();
} else {
%>

        But I am not found any reference to ContentLength property
        in Apache::ASP doc.

-- 
Best regards, Nikolay Melekhin mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to