When I remember right it's a "problem" of the driver. You have to convert it to base64 before inserting:
Qt Code:
  1. sql.bindValue(":data", data.toBase64());
To copy to clipboard, switch view to plain text mode