Subject | Re: [Firebird-Java] Re: Problem when using Firebird + Hibernate + Blob fields |
---|---|
Author | Roman Rokytskyy |
Post date | 2005-09-09T14:50:17Z |
> I don't wanna bother, but just by asking... the fix didn't come with theBad... It was included into the build...
> snapshot you've just release some minutes ago, does it? Because I tested
> it and it's all the same.
public void setBlob(int parameterIndex, Blob blob) throws SQLException {
// if the passed BLOB is not instance of our class, copy its content
// into the our BLOB
if (!(blob instanceof FBBlob)) {
FBBlob fbb = new FBBlob(gdsHelper, blobListener);
fbb.copyStream(blob.getBinaryStream());
blob = fbb;
}
getField(parameterIndex).setBlob((FBBlob) blob);
isParamSet[parameterIndex - 1] = true;
}
Do you have the same error message?
Roman