I'm trying to do a simple connect using a NuoDB database -
import pynuodb
connection = pynuodb.connect("DB", "servername", "adminaccount", "password", options={'schema': 'schemaname'})
cursor = connection.cursor()
thedata = open('file.pdf', 'rb').read()
sql = "update table set column = (?) where id = 1"
cursor.execute(sql, (thedata,))
in trying to load it's generating the following error -
INVALID_UTF8: invalid UTF-8 code sequence
UPDATE - I've tried using both a BLOB or BINARY and both generate the same error. The documentation on the data types is found here -