More & More Fun w/ Pics & MySQL

Carsten Haese carsten.haese at gmail.com
Fri Oct 16 16:42:37 EDT 2009


Victor Subervi wrote:
> [snip...]
>
> print 'Content-type: image/jpeg'
> print 'Content-Encoding: base64'
> print
> print pic().encode('base64')
> print '</body></html>'
>
> [snip...]

Why are you printing "</body></html>" at the end of a page that is
supposed to be a base64-encoded JPEG file?

--
Carsten Haese
http://informixdb.sourceforge.net




More information about the Python-list mailing list