Blob problem
Posted: Fri 17 Oct 2008 06:33
Hi,
I have found a strange behavior when writing blobs.
I have a TIBCQuery with TDataSetProvider and TClientDataSet and write the blob with CreateBlobStream method of TClientDataSet.
Everything works fine, until i try to write the same(identical binary stream) blob data to the blob field. Then the blob is updated with a NULL value.
Like this:
1) Insert record with blob value = $01$02$03 O.K.
2) Select record and update the blob value to $01$02$03$04 O.K.
3) Select record and update blob value to $01$02$03$04 Error -> a NULL value is written to the blob field and the blob field becomes empty!
Thanks!
I have found a strange behavior when writing blobs.
I have a TIBCQuery with TDataSetProvider and TClientDataSet and write the blob with CreateBlobStream method of TClientDataSet.
Everything works fine, until i try to write the same(identical binary stream) blob data to the blob field. Then the blob is updated with a NULL value.
Like this:
1) Insert record with blob value = $01$02$03 O.K.
2) Select record and update the blob value to $01$02$03$04 O.K.
3) Select record and update blob value to $01$02$03$04 Error -> a NULL value is written to the blob field and the blob field becomes empty!
Thanks!