--On 25. Februar 2006 21:55:24 -0800 Allen Huang <[EMAIL PROTECTED]> wrote:

      tfw = open(imageDataFile, "r")

Please consult the StringIO documentation. There is no need to open()
a StringIO instance...also your code makes little sense to me because
str() already returns a string which is usually what you need and want.
Why do you have the need to put the image data into a StringIO instance.
And another point: you should always use cStringIO instead of StringIO
(for performance reasons)...consult the Python Library reference for details.

Attachment: pgpFyJJK7yJzV.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to