http://www.perlmonks.org?node_id=572287


in reply to Re^3: CGI-Perl:: Location for saving the GD output
in thread CGI-Perl:: Location for saving the GD output

hi Shmem,

I tried as following...

#!/usr/bin/perl -w use CGI; my $query = new CGI; $query->header(); $query->start_html(); print "Content-type:image/x-png\n\n"; open (I, '<', "/tmp/upload/EMBOSS_001.png"); binmode I; print while <I>; close I; $query->endform(); $query->end_html();
But it prints only some arbitory characters, not an image!!