Canvas into ClientDataSet - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Canvas into ClientDataSet

how do I put graphic into a clientdataset?

Basically I have a canvas which I would like to save in a clientdataset, in order to retrieve it later.

I have a field called 'canvas', which is defined as a ftGraphic (or should I use ftBlob?).. is there a way to do it like this:


clientdataset1.fieldbyname('canvas').(asGraphic?.. or something) := "the Canvas"..

Using Delphi 7..
Thanks for any help.

Comments

  • AlexDimAlexDim Posts: 31Member
    Nevermind... got it to work with a simple typecast..

    TBlobField(ClientDataSet1.FieldByName('Canvas')).Assign(Image1.Picture.Bitmap);




    : how do I put graphic into a clientdataset?
    :
    : Basically I have a canvas which I would like to save in a clientdataset, in order to retrieve it later.
    :
    : I have a field called 'canvas', which is defined as a ftGraphic (or should I use ftBlob?).. is there a way to do it like this:
    :
    :
    : clientdataset1.fieldbyname('canvas').(asGraphic?.. or something) := "the Canvas"..
    :
    : Using Delphi 7..
    : Thanks for any help.
    :
    :

Sign In or Register to comment.