Subject | Re: [firebird-support] Blob filter doc/help/tut/example for Delphi |
---|---|
Author | Ivan Prenosil |
Post date | 2005-02-08T12:01:39Z |
"Ann W. Harrison" wrote:
But UDF can't open the blob - it is done by Firebird server,
and UDF just receives handle of already opened blob -
all it can do then is calling blob_get_segment using that handle.
For the same reason UDFs can't create streamed blobs as output
parameter, simply because the output blob is already created by server,
and all what UDF can do is put some data using blob_put_segment.
Ivan
> Ivan Prenosil wrote:No. Blob filter is requested via BPB when _opening_ the blob.
>>
>> Before you start developpinfg your blob filters, be aware that
>> they can't be invoked
>> - in sql command
>> - in UDF
>> - in PSQL
>>
>
> For 1 and 3, you're right. But UDFs can read blobs using the api calls,
> so they can use blob filters.
But UDF can't open the blob - it is done by Firebird server,
and UDF just receives handle of already opened blob -
all it can do then is calling blob_get_segment using that handle.
For the same reason UDFs can't create streamed blobs as output
parameter, simply because the output blob is already created by server,
and all what UDF can do is put some data using blob_put_segment.
Ivan