use strict; open(IMAGE, "image.gif"); binmode(IMAGE); my $Data = ; close(IMAGE); print "Content-type: image/gif\ n\ n"; print $Data;