Subject | Re: [ib-support] UDF with BLOB... |
---|---|
Author | Claudio Valderrama C. |
Post date | 2001-10-11T05:48:02Z |
<liglezias2@...> wrote in message news:9q2kph+mi2l@......
use the blobcallback structure definition that's in FB's ibase.h, then
you'll have a function to seek. The seek function in turn takes an arguments
that should allow you to seek from the end backwards. This is in fact the
full structure that both InterBase® and Firebird give to the UDF, but the
seek function is only available for stream blobs.
Now, the problem is whether you can create such stream blobs. I know they
are used internally for arrays.
Ann, are you reading?
C.
--
Claudio Valderrama C. - http://www.cvalde.com - http://www.firebirdSql.org
Independent developer
Owner of the Interbase® WebRing
> Hi all!In theory: create a stream blob (as opposed to typical segmented blobs) and
>
> Supose that I have an UDF that has a BLOB param.
> Is there a way to see only a specific byte of that BLOB?
> For ex: I want the last byte of that BLOB.
>
> I should do that WITHOUT reading ALL the blob (from the begining), as
> it is suggested by the function (in the BLOB structure):
use the blobcallback structure definition that's in FB's ibase.h, then
you'll have a function to seek. The seek function in turn takes an arguments
that should allow you to seek from the end backwards. This is in fact the
full structure that both InterBase® and Firebird give to the UDF, but the
seek function is only available for stream blobs.
Now, the problem is whether you can create such stream blobs. I know they
are used internally for arrays.
Ann, are you reading?
C.
--
Claudio Valderrama C. - http://www.cvalde.com - http://www.firebirdSql.org
Independent developer
Owner of the Interbase® WebRing