Displaying images stored as binary in MySQL

Benjamin Niemann b.niemann at betternet.de
Fri Aug 13 15:31:32 CEST 2004

Blaktyger wrote:

> How can this be done? Images are stored in a LONGBLOB field. When I
> try to display them, it prints out the binary data as it is...
Display where? On local screen, in a webbrowser?
Assuming the first one, see post by Tom.
Assuming the second one (you're writing a cgi,mod_python... program), 
did you set the content-type in the http header correctly?

More information about the Python-list mailing list