I\'m trying to set up a python script in cgi-bin that simply returns a header with content-type: image/png and returns the image. I\'ve tried opening the image and returnin
Are you including the blank line after the header? If not, it's not the end of your headers! print 'Content-type: image/png' print print f.read()
print 'Content-type: image/png' print print f.read()