I am trying to use the NPM oracle library and update some tables with BLOB values created from files on my computer. Oracle documentation says to use the createLob() function like the following in order to get a value the database will accept:
conn.createLob(oracledb.BLOB, function(err, templob) {
if (err) { . . . }
// ... else use templob
});
But I have no idea what "use templob" implies...
How do I get my data into these oracledb.BLOB objects?
EDIT: Example of update I am attempting:
const queryString = `UPDATE TABLENAME SET BLOB = :blob WHERE ID = 1234;`;
this.oracleConnection.execute(queryString,
{blob: await fs.readFileSync('/path/to/image.jpg')}
)