Subject | Re: [IBO] BlobStream problem |
---|---|
Author | michaelgaihede |
Post date | 2004-04-03T09:50:24Z |
Well, unless I am missing something, that is what I'm doing: the FDS
variable is a TIB_Query - i.e. a TIB_Dataset descendant - so I am
not quite sure what you mean ?
variable is a TIB_Query - i.e. a TIB_Dataset descendant - so I am
not quite sure what you mean ?
--- In IBObjects@yahoogroups.com, jwharton@i... wrote:
> Use the TIB_Dataset.CreateBlobStream() method instead of directly
instantiating your own instance.
>
> Jason Wharton
> www.ibobjects.com
>
> -------------------------------------------------------------------
-------------
> -------------------------------------------------------------------
-------------
> 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