Returns TRUE on success.
Returns FALSE on failure. Use pbms_errno() and pbms_error() to retrieve error details.
pbms = pbms_connect("localhost", 8080, "aDatabase"); // Fetch the BLOB back, 'name' is a LONGBLOB column. mysql_query(mysql, "select name from bobtest where id = 1"); results = mysql_store_result(mysql); record = mysql_fetch_row(result); /* Get the first 10 bytes of the BLOB. */ char buffer[10]; pbms_get_data_range(pbms, record[0], 0, 9, buffer, 10, &data_size)); if (data_size != 10) printf("OOPS! this is a bug!\n"); pbms_close(pbms);