[DB-SIG] MySQLdb -- BLOB is array

GMane Python s_david_rose at hotmail.com
Mon Jul 25 16:30:15 CEST 2005

Hello all.
  I'm new to python, and to Mysql, too.  I'm trying stuff out, and wanted to
take a photo in a program and insert it into a MySQL table as a BLOB.  When
trying to retrieve it, I get an array('c', <PIL Image instance>).

  I do a result = cursor.fetchall(), but how can I get the <PIL Image
instance> from  the result array?

Thank you!

More information about the DB-SIG mailing list