Hello,
Can someone help me out with the mysql connection statement to instert a textfile into a mysql table (field type is long blob)?
For example:
cursor.execute("insert into mytable (file_contents) values ('"+open(filename,"r").read()+"')")
Obviously that's not very practical, can someone post a better way to do this?