in reply to Re: Re: displaying pdf
in thread displaying pdf

Try binmode STDOUT;

Replies are listed 'Best First'.
Bingo Re: Re: Re: Re: displaying pdf
by admiraln (Acolyte) on Oct 21, 2002 at 21:20 UTC
    It works.
    #!perl -w $| = 1; open(FILE,"dental.pdf") or die("$!"); print "Content-Type: application/pdf\n\n"; binmode(FILE); binmode(STDOUT); while (read(FILE,$buffer,64000)) { print STDOUT $buffer; }
    Disclaimer