• Hi,

    We are using WPtools 6 in a delphi 7 environment.

    Problem description:
    We add a picture to a WPRichtext-component.
    This is our code:
    wpBody.Memo.RTFData.TextObjects.Insert(WPLoadObjectFromFile(wpBody.Memo.RTFData, openDialog.FileName));

    (wpBody is WPRichText)

    Now, we want to add this in our database (In a blobField)
    this is the code:
    aStream := TMemoryStream.Create;
    try
    wpBody.SaveToStream(aStream, 'HTML');
    TBlobField(srcMain.DataSet.FieldByName('RMC_SIGNATURE')).LoadFromStream(aStream);
    finally
    aStream.Free;
    end;

    Now, The picture shall not be saved , it will be disappeared.
    How must we save this in a blobfield as HTML ?

    We use a Firebirddatabase.

    thanks in advance.
    gr Hans