Writing a Blob UDF
From InterBase
Go Up to Working with UDFs and Blob Filters
A Blob UDF differs from other UDFs because pointers to Blob control structures are passed to the UDF instead of references to actual data. A Blob UDF cannot open or close a Blob, but instead invokes functions to perform Blob access.
For information on how to convert a BLOB to a VARCHAR , see the chapter Specifying Data Types of the Data Definition Guide.