Problem Displaying Pics

Victor Subervi victorsubervi at gmail.com
Wed Oct 7 16:49:24 EDT 2009


I tried these combinations:

print '''Content-Type: image/jpeg
Content-Encoding: base64
'''
print
print content.encode('base64')

and

print '''Content-Type: image/jpeg

Content-Encoding: base64
'''
print content.encode('base64')

Neither worked :(
V

On Wed, Oct 7, 2009 at 3:40 PM, Carsten Haese <carsten.haese at gmail.com>wrote:

> Victor Subervi wrote:
> > [...]
> > print '''Content-Type: image/jpeg
> >
> > Content-Encoding: base64
> > '''
> > [...]
>
> You have a spurious blank line between those header lines.
>
> HTH,
>
> --
> Carsten Haese
> http://informixdb.sourceforge.net
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091007/ac497790/attachment.html>


More information about the Python-list mailing list