in reply to Re^7: Not able to display an image in perl CGI
in thread Not able to display an image in perl CGI

my mistake - remove the ; on the first line
#!/usr/bin/perl
poj

Replies are listed 'Best First'.
Re^9: Not able to display an image in perl CGI
by aniammu (Novice) on Apr 30, 2014 at 07:19 UTC
    Now I can see that I not getting any error in Explorer, but the image is not displayed. ( One small icon has been displayed after executing the script )

    In erro_log

    [Wed Apr 30 12:27:07 2014] [error] [client 10.142.205.193] (8)Exec for +mat error: exec of '/var/www/cgi-bin/PTF/WP_20140410_19_01_49_Pro.jpg +' failed, referer: http://10.58.117.54/cgi-bin/PTF/image1 [Wed Apr 30 12:27:07 2014] [error] [client 10.142.205.193] Premature e +nd of script headers: WP_20140410_19_01_49_Pro.jpg, referer: http://1 +0.58.117.54/cgi-bin/PTF/image1
      Try with some other jpg files that you know are good.
      poj
        hi :) even if the jpeg isn't good, the webserver wouldn't care about that ... now because the shebang is broken the error message changed .... :)
        :( I used some different jpg file which has been used in our product GUI. But still the same issue