The error in that thread was for saving, not for comparing a value. I'm not sure if that's possible in firebird. Not every rdbms allows comparing blob fields to values... You pass in a blob value and you want to compare it to a blob field and that fails with an internal error, no other error information?
If you write a small ADO.NET testcase, do you get the same error there?