could anyone help with how to update blob data in oracle
so, i'm trying like:
file = open ('picture.jpg','rb')
ext = 'jpg'
content = file.read ()
file.close ()
db = cx_Oracle.connect('user', 'pwd', dsn_tns)
db=db.cursor()
sqlStr = "update table_name set column1=:blobData, column2=" + str(ext) + " where id = 1"
db.setinputsizes (blobData = cx_Oracle.BLOB)
db.execute (sqlStr, {'blobData': content})
db.execute ('commit')
db.close()
finally, I got such error:
cx_Oracle.DatabaseError: ORA-00904: "JPG": invalid identifier