in reply to Printing an Image From a File to the Browser...

You're probably getting tripped up by   print "Content-type: image/gif\n\n" . <IMAGE>; which is going to give you the first "line" of the image. The concatenation operator forces scalar context onto <IMAGE>, which isn't what you want.
print "Content-type: image/gif\n\n"; binmode(IMAGE); print <IMAGE>;
should do it for you. (I threw in the binmode() in the unlikely event that you're running on Win32.)

Replies are listed 'Best First'.
Re: Re: Printing an Image From a File to the Browser...
by joshua (Pilgrim) on Jun 15, 2002 at 00:45 UTC
    I threw in the binmode() in the unlikely event that you're running on Win32.

    God Forbid! :)

    Joshua