in reply to Re^4: Not able to display an image in perl CGI
in thread Not able to display an image in perl CGI
Try this simple test script
Update 1 : Corrected URL (thanks to NetWallah).#!/usr/bin/perl use strict; use CGI ':standard'; use CGI::Carp 'fatalsToBrowser'; my $file = "/cgi-bin/PTF//WP_20140410_19_01_49_Pro.jpg"; print header, start_html('Test'), img({-src=>$file,-alt=>'image'}), end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Not able to display an image in perl CGI
by NetWallah (Canon) on Apr 29, 2014 at 14:03 UTC | |
by aniammu (Novice) on Apr 30, 2014 at 05:22 UTC | |
by poj (Abbot) on Apr 30, 2014 at 06:55 UTC | |
by aniammu (Novice) on Apr 30, 2014 at 07:19 UTC | |
by poj (Abbot) on Apr 30, 2014 at 08:10 UTC | |
|