The data returned is binary data, if you want the data as a 'C' string then use pbms_get_metadata_value(pbms, MS_CHECKSUM_TAG, buffer, NULL);
Returns TRUE on success.
Returns FALSE on failure. Use pbms_errno() and pbms_error() to retrieve error details.
PBMS pbms; char md5_digest[16]; 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 BLOB metadata only. */ pbms_get_info(pbms, record[0]); pbms_get_md5_digest(pbms, md5_digest); pbms_close(pbms);