Skip to content

Instantly share code, notes, and snippets.

View blablabla1234678's full-sized avatar

lajos.janszky blablabla1234678

View GitHub Profile
@akirattii
akirattii / example-read-write-mysql-blob.js
Created April 17, 2018 05:47
node-mysql example: How to write & read BLOB
/*
DDL:
CREATE TABLE `bindata` (
`id` INT NOT NULL AUTO_INCREMENT,
`data` BLOB,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
*/
const fs = require("fs");