I need a little help with NodeJS and MySQL blob insertion.
Here\'s the code snippet i\'m using
fs.open(temp_path, \'r\', function (status, fd) {
try using multer buffer:
let query = "UPDATE yourtable SET image=? WHERE id = '1'" let obj = req.file.buffer; conn.query(query, obj, function (err, rows, fields) {})