in reply to Re: Re: Perl "image" question...
in thread Perl "image" question...

Use the second example (untested)
open (IMG, $image_file) or die "could not read image: $!";; my ($image, $buff); while (read IMG, $buff, 1024){ $image .= $buff; } close IMG; # assume it's a gif print "Content-type: image/gif\n\n"; print $image;
poj

Replies are listed 'Best First'.
Re: Perl "image" question...
by powerhouse (Friar) on Feb 02, 2003 at 00:19 UTC
    AWESOME poj!
    it works!!

    Thank You!

    thx,
    Richard