Subject | BlobStream problem |
---|---|
Author | michaelgaihede |
Post date | 2004-04-02T15:13:37Z |
Hi,
I'm having trouble reading/writing from a blobstream. After opening a
TIB_Query with a blob field, I create the blobstream field:
FStream := TIB_BlobStream (FDS.CreateBlobStream(FDS.FieldByName
(FBlobFieldName), bsmReadWrite));
If the mode is set to bsmReadWrite, the internal blobstream size is
set to 0, and all subsequent reads from the stream will fail. When
using bsmRead, however, the size is assigned correctly, but writing
is not possible. The query is in edit mode and the blobfield is not
ReadOnly. In addition, when opening the field in bsmReadWrite mode,
I can write to the stream without any problems.
Any suggestions will be highly appreciated.
Best regards and thanks,
Michael
I'm having trouble reading/writing from a blobstream. After opening a
TIB_Query with a blob field, I create the blobstream field:
FStream := TIB_BlobStream (FDS.CreateBlobStream(FDS.FieldByName
(FBlobFieldName), bsmReadWrite));
If the mode is set to bsmReadWrite, the internal blobstream size is
set to 0, and all subsequent reads from the stream will fail. When
using bsmRead, however, the size is assigned correctly, but writing
is not possible. The query is in edit mode and the blobfield is not
ReadOnly. In addition, when opening the field in bsmReadWrite mode,
I can write to the stream without any problems.
Any suggestions will be highly appreciated.
Best regards and thanks,
Michael