You need to output one other http header besides the Content-type:
Content-Length
This should be set to the length of your file (obviously). Also, you don't need the $_ which is the default for print. Try this:
$gif = "agif.gif"; $gifsize = (-s $gif); print "Content-Length: $gifsize\n"; print "Content-type: image/gif\n\n"; open(GIFIMAGE, "$gif"); while (<GIFIMAGE>) {print; }; close(GIFIMAGE);
Simple as that! If it still doesn't work, please let us know.
In reply to Re: Print Image File
by turnstep
in thread Print Image File
by westonmr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |