indapa has asked for the wisdom of the Perl Monks concerning the following question:
When I run the CGI script from the command line, it prints out a whole bunch of funny looking characters. But when I run it from the web page, no image is displayed. Is there a better solution to this? I appreciate the help.open (GIF, "/path/to/gif/") || die "$!\n"; my ($image, $buff); while (read GIF, $buff, 1024) { $image.=$buff; } close GIF; print "Content-type: image/gif\n\n"; print $image;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: display gif image
by merlyn (Sage) on Apr 27, 2001 at 00:55 UTC | |
|
Re: display gif image
by tadman (Prior) on Apr 27, 2001 at 00:53 UTC | |
by dws (Chancellor) on Apr 27, 2001 at 01:06 UTC | |
|
Re: display gif image
by ckohl1 (Hermit) on Apr 27, 2001 at 00:11 UTC | |
by ckohl1 (Hermit) on Apr 27, 2001 at 00:24 UTC |