Fw: WhatamI doing wrong ? (re: About Content-Transfer-Encoding)

Sandipan Gangopadhyay sandipan at vsnl.com
Mon Jan 29 14:28:21 EST 2001


Just to place on the record:

I used StringIO to collate the entire body into a file-like object, seek(0)
to reset the file pointer, fed the result to base64.encode, and sent the
result to the MimeWriter body. This time it all worked fine.

Regards,

Sandipan

----- Original Message -----
From: "Oleg Broytmann" <phd at phd.pp.ru>
To: "Dhirja Gangopadhyay" <dhirja at vsnl.net>
Cc: <python-list at python.org>
Sent: Tuesday, January 23, 2001 9:37 PM
Subject: Re: Fw: WhatamI doing wrong ? (re: About Content-Transfer-Encoding)


> On Tue, 23 Jan 2001, Dhirja Gangopadhyay wrote:
> > Could I be I going wrong because I am encoding string by string rather
than
> > the whole file at once ? (That does create a problem, though - how do I
>
>    Perhaps.
>
> > convert all the lists I write to the body into a file first !)
>
>    Use StringIO to collect data.
>
> Oleg.
> ----
>      Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
>            Programmers don't die, they just GOSUB without RETURN.
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>





More information about the Python-list mailing list