bear0053 has asked for the wisdom of the Perl Monks concerning the following question:
The script works fine it drops the cookies it is suppose to and I know it reads the image file in correctly from some testing I have done but the calling file displays a broken image link instead of the picture. When i call the script directly it displays: ‰PNG<img src="http://www.xyz.com/cgi-bin/genImage.cgi">
print "Expires: Fri, 30 Oct 1998 14:19:41 GMT\n"; print "Content-type:image/png\n\n"; open IMAGE, "e:/image1.png"; my ($image, $buff); while(read IMAGE, $buff, 1024) { $image .= $buff; } close IMAGE; #binmode STDOUT; #tried this with no success as well #print STDOUT $image; #tried this with no success as well print $image;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: return image from CGI scrript error
by PodMaster (Abbot) on Oct 21, 2003 at 16:58 UTC | |
by bear0053 (Hermit) on Oct 21, 2003 at 17:15 UTC | |
|
Re: return image from CGI scrript error
by hardburn (Abbot) on Oct 21, 2003 at 15:56 UTC | |
by bear0053 (Hermit) on Oct 21, 2003 at 16:05 UTC | |
by hardburn (Abbot) on Oct 21, 2003 at 16:10 UTC | |
|
Re: return image from CGI scrript error
by Taulmarill (Deacon) on Oct 21, 2003 at 15:53 UTC |