in reply to open and print image
open(FH, '<', 'images/logo.gif') or die $!; local $/ = undef; my $content = <FH>; close(FH); binmode STDOUT; print "Content-type: image/gif\n\n"; print $content; exit(0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open and print image
by Anonymous Monk on May 30, 2009 at 14:31 UTC |