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.ha...@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
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to