If the reference is a PBMS BLOB URL then the blob size is imbedded in the URL and so the size can be returned directly.
Returns the size of the BLOB in bytes on success.
Returns FALSE on failure. Use pbms_errno() and pbms_error() to retrieve error details.
<?php pbms_connect(); // Create a BLOB $blob_ref = pbms_put_data("A tiny BLOB", NULL); printf("The BLOB size taken directly from the blob ref: %d\n", pbms_get_blob_size($blob_ref)); pbms_close(); ?>