I was using the Content-type: image/gif header. But the image is being displayed within an HTML page which uses the Content-type: text/HTML header.
When I create the image by accessing a CGI (i.e. <IMG SRC="test.cgi?blah&Blah">, the image comes out fine. But when I access the image using a sub routine (i.e. <IMG SRC="&test"> I get ASCII text.
I prefer to access via a sub routine because I am accessing a database with variables and the image is drawn using the variables. I am having trouble passing all the variables to an external CGI, but it is easy using a sub routine.
I'm sure my Perl ignorance is making this much more difficult than it should be.
You can see what i'm doing at http://www.belizeexplorer.com and using the search function at top. None of hte other links currently work.
|