Yes you are absolutly right in both cases. This is off topic and the problem is only in passing the lengthBLOB Thanks for the help.
Kiril
This is completely off topic, it is a simple programming error, I am sure. Your lengthBLOB outside of the function is fishy, you didn't show even how and where you have declared it. Your example proofs that not the call to blobGet.getBinaryLength() is the problem, but the assignment to lengthBLOB, and lengthBLOB is a reference, to what? Gerald Gerald

