What is the correct way to insert Buffer
as BLOB
just 1-to-1 without serializing to string/hex? Is it possible at all from Node.js?
At my backend I already have Buffer
s with binary data and want to store them with minimum overheads using prepared statements. I'm getting ER_TRUNCATED_WRONG_VALUE_FOR_FIELD errno:1366 Incorrect string value
error. It looks like the library just assumes there is a valid utf8 string in a buffer.