Thread Bild in eine perl/cgi page?
(24 answers)
Opened by kangtar at 2009-01-09 17:45 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 use strict; use warnings; my $filename = 'foo.gif'; print "Content-Type: image/gif\n\n"; binmode STDOUT; if(open(FILE, "< $filename")) { binmode FILE; my $buffer; while(read(FILE, $buffer, 65536)) { print $buffer; undef $buffer; } close FILE; } |