Subject | Re: [firebird-support] Update Blob type 2 |
---|---|
Author | Helen Borrie |
Post date | 2011-07-25T22:15:57Z |
At 08:59 AM 26/07/2011, you wrote:
If you want to use sub_types for specific purposes, define them as a sub_type of less than zero. Blob filters are a special category of external function that you can write (in a language that can export dynamic libs with CDECL calling convention, like a UDF) to have the contents of one sub_type converted to another sub_type. You declare them in the database, similarly to the way you declare UDFs.
Better you describe what you are trying to do here...
./hb
>I am using FB 2.5 and I have a Blob type 2 field and I am trying toDo you mean sub_type 2? If so, it's not available for updating by users - it is a system BLOB (can't say which one without checking docs...there are lots of blobs in the metadata, all sub_types 2 and higher).
>update it with a string value. I am getting an error that "filter not
>found to convert type 1 to type 2". How can I create that filter or
>pre-define the data to update the blob?
If you want to use sub_types for specific purposes, define them as a sub_type of less than zero. Blob filters are a special category of external function that you can write (in a language that can export dynamic libs with CDECL calling convention, like a UDF) to have the contents of one sub_type converted to another sub_type. You declare them in the database, similarly to the way you declare UDFs.
Better you describe what you are trying to do here...
./hb