in reply to Re: Not able to display an image in perl CGI
in thread Not able to display an image in perl CGI
# cat image1 #!/usr/bin/perl use File::Copy; print "HTTP/0.9 200 OK\r\n"; print "Content-Type: image/jpeg\r\n"; print "\r\n"; copy "/var/www/cgi-bin/PTF//WP_20140410_19_01_49_Pro.jpg", \*STDOUT; #
After introducing Header information also i am getting the same error..
[Tue Apr 29 14:52:59 2014] [error] [client 10.142.236.15] malformed he +ader from script. Bad header=\xff\xd8\xff\xe1\xa7\xdcExif: image1
|
|---|