MySQL Forums
Forum List  »  Connector/Python

Insert picture into MySQL
Posted by: Vitaly Bondaryna
Date: July 15, 2009 04:36AM

Help please.

Me need save picture in table mysql in fields type BLOB. Problem in writing python code. I use MySQLDB.

cursor.execute("update chekdisp set photo = %s where id_disp = %s" %(data, num_disp)) do not work right.
data it is content of .jpg file, num_disp - int.

Options: ReplyQuote


Subject
Written By
Posted
Insert picture into MySQL
July 15, 2009 04:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.