Database: Insert a blob

To insert a blob of bytes from a file:

var bytes = File.getBytes(filename);
var blobdata = cnx.quote(Lib.stringReference(bytes));
var rset = cnx.request('INSERT INTO mytable (data) VALUES (' + blobdata + ')');
version #11743, modified 2011-11-12 08:46:03 by cambiata