(This hasn't been tested)binmode(STDOUT); open(my $img, "images/some.jpg") or print "content-type: text/plain\n\nfailed to open image"; local $/; print "content-type: image/jpeg\n\n"; print <$img>; close $img;
In reply to Re: Sending an image to a browser
by bsdz
in thread Sending an image to a browser
by Delusional
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |