MySQL Forums
Forum List  »  Connector/Python

Re: mysql.connector for binary file save to blob field
Posted by: Peeyush Gupta
Date: April 30, 2015 03:05AM

Remove the quotes around %s

write your query like this:
mycur.execute("insert into brand (imaging) values (%s)", (photo,))

Options: ReplyQuote


Subject
Written By
Posted
Re: mysql.connector for binary file save to blob field
April 30, 2015 03:05AM


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.