in reply to Re: Preventing an image from caching
in thread Preventing an image from caching

Thanks for the post, but I am generating the image, saving it to a file, then calling the file with the <IMG...> tag. I can't seem to get the image to go directly to the page because all I get is ASCII text instead of hte binary.
  • Comment on Re: Re: Preventing an image from caching

Replies are listed 'Best First'.
Re: Re: Re: Preventing an image from caching
by bastard (Hermit) on Nov 28, 2000 at 20:25 UTC
    Call the file with this script.
    #!/bin/perl $image = `cat imagenameandpath`; print "Content-type: image/png\n\n"; print $image;
    It's the simplest way i know.

    BTW- image/png is for png file format, substitute gif, jpeg, for others.