The Image object's data attribute is what you want. AFAIK, you need to use consruct a StringIO object with the data in from the data attribute (it makes a chunk of data look like a file object). PIL doesnt seem to support any other method of reading a chunk of data but from an object that looks like a file.
-----Original Message----- From: Anders Lide'n [mailto:al@netg.se] Sent: Friday, April 28, 2000 2:54 AM To: zope-dev@zope.org Subject: [Zope-dev] Problem with reading zope objects from external method.
I want to draw a circle on a picture that I have stored inside zope. Since the image manipulation module (PIL) is a module not usable from inside zope I have to use an external method.
The external method now needs to read in the file (the picture) and this file is located inside zope as a zope object (image file). Hence : I need to get the external method to read a zope object. But I continually fail to read the zope object, how do I do?
Anders Lidén NetGuide / TerraTel AB al@netg.se Tankegången 4 Url:http://www.netg.se/ 417 56 GÖTEBORG Mobile : 0736 - 73 55 32 +46 - (0)31 - 50 79 69
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )