Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Pb with DataType Graphic
Fri, Mar 15 2013 12:10 PMPermanent Link

David Mahistre

Hello I have a problem with a graphic type field, with BDE I used the following code but I have an error message Transtipage of type incorrect with DBISAM
Have you an idea ?
Cordially



   Stream1:=TBlobStream.Create(DataModuleDllWil.TableSituationDessin,bmRead);
   ImageFond.Picture.Graphic.LoadFromStream(Stream1);
   Stream1.Free;
Fri, Mar 15 2013 12:55 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

David


I think you need to use a TDBISAMBlobStream but its ages since I did anything like that.

Roy Lambert [Team Elevate]
Fri, Mar 15 2013 3:34 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

David,

<< Hello I have a problem with a graphic type field, with BDE I used the
following code but I have an error message Transtipage of type incorrect
with DBISAM Have you an idea ? >>

Use something like this instead, it's more portable:

   MyStream:=MyTable.CreateBlobStream(MyBlobField,bmRead);

where:

MyStream = TStream
MyTable = TDBISAMTable
MyBlobField = TField

Tim Young
Elevate Software
www.elevatesoft.com


Mon, Mar 18 2013 5:21 AMPermanent Link

David Mahistre

Thank you for your answer
Image