help: loading binary image data into memory
Jeff Epler
jepler at unpythonic.net
Mon Apr 11 21:29:08 EDT 2005
probably something like this: (untested)
def make_ftplib_callback(f):
def callback(block): f.write(block)
return callback
img = cStringIO.StringIO()
retrbinary( "get ???", make_ftplib_callback(img))
Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050411/f8e3b253/attachment.sig>
More information about the Python-list
mailing list