Returns TRUE on success.
Returns FALSE on failure. Use pbms_errno() and pbms_error() to retrieve error details.
PBMS pbms; char blob_ref[MS_BLOB_URL_SIZE], query[MS_BLOB_URL_SIZE + 100]; const char *a_blob = "A tiny BLOB"; pbms = pbms_connect("localhost", 8080, "A_database"); //----------- // Create a BLOB and insert it into a table. // Assume that the table exists. pbms_put_data(pbms, "bobtest", blob_ref, strlen(a_blob), a_blob); snprintf(query, MS_BLOB_URL_SIZE + 100, "insert into bobtest(id, name) Values(1, \"%s\")", blob_ref); mysql_query(mysql, query); // Assume we have a MySQL connection. pbms_close(pbms);