Hello PB Experts,
I am having an issue with fetching value from a blob field using the SELECTBLOB statement.
My query is something like this,
SELECTBLOB object
INTO :lb_blob
FROM table
WHERE code = :code
USING SQLCA;
However, this is throwing SQL Error -9634: No cast from blob to byte.
My application is connecting to an Informix database.
Has anybody faced this issue? Your help is highly appreciated.
Thanks,
Prajeesh
I have fixed the problem. I created a view on the table that had the BLOB field and applied a cast on the BLOB field. The SELECTBLOB on this view works fine without any issues.
I really appreciate your time and response.
Thanks, Prajeesh