You're just printing the location of the image you want. This won't work, as the browser expects the SRC attribute to point to the image data itself. You'd need either
#!/usr/bin/perl print "Content/Type: image/png\n\n"; open( PIC, "../images/pic1.png" ) or die "Can't open: $!\n"; print while <PIC>; close( PIC ); exit 0; __END__
In reply to Re: img src =
by Fletch
in thread Output image with cgi script
by daddyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |