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

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

Replies are listed 'Best First'.
Re^10: Not able to display an image in perl CGI
by poj (Abbot) on Apr 30, 2014 at 08:10 UTC
    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
        You're in the wrong forum friend :) no tomcat experts here to help you ... althought, trying to serve static files from cgi-bin directory is generally the wrong thing on most every webserver