in reply to Re: How can I use a CGI script to return an image?
in thread How can I use a CGI script to return an image?
And then you don't even have to type binmode STDOUT as another monk in this thread suggested, because copy does it for you.use File::Copy; print "Content-type: image/jpeg\n\n"; copy "/path/to/image.jpeg", \*STDOUT;
-- Randal L. Schwartz, Perl hacker
|
|---|