pbms_get_data
Description
pbms_bool pbms_get_data ( PBMS pbms ,const char * blob_ref ,unsigned char * buffer ,size_t size )
Get buffered data from the PBMS BLOB streaming daemon for the specified BLOB reference.
Parameters
pbms
A valid PBMS connection handle.
blob_ref
A BLOB reference for the data to be received.
buffer
A pointer to the buffer into which the BLOB data is to be placed.
size
The size of the buffer.
Return Values

Returns TRUE on success.

Returns FALSE on failure. Use pbms_errno() and pbms_error() to retrieve error details.

Example
	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 size so we can allocate a buffer for it. */
	pbms_get_blob_size(pbms, record[0], &size);
	
	buffer = malloc(size);

	pbms_get_data(pbms, record[0], buffer, size));

	pbms_close(pbms);
		
Related functions
pbms_get_data_cb() pbms_get_data_range() pbms_get_data_range_cb() pbms_put_data() pbms_put_data_cb()