pbms_get_blob_size
Description
long pbms_get_blob_size ( string $blob_ref [,resource $pbms] )
Get the size of the BLOB for the specified BLOB reference.

The blob size is imbedded in the URL and so the size can be returned directly.

Parameters
$blob_ref
A BLOB reference.
$pbms
A valid PBMS connection resource. If $pbms is not specified, the last link opened by pbms_connect() is assumed. If no such link is found, it will try to create one as if pbms_connect() was called with no arguments. If by chance no connection is found or established, an E_WARNING level error is generated.
Return Values

Returns the size of the BLOB in bytes on success.

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

Example
<?php 
  pbms_connect();

  // Create a BLOB
  $blob_ref = pbms_put_data("A tiny BLOB");

  printf("The BLOB size taken directly from the blob ref: %d\n", pbms_get_blob_size($blob_ref));

  pbms_close();
?>
		
Related functions
pbms_is_blob_reference()