procedure edit;
//Im folgenden Beispiel werden die Daten im Feld Notes von Table1 oder SQLDataSet1 in das Feld Remarks von ClientDataSet1 kopiert.Nur Windows:procedure TForm1.Button1Click(Sender: TObject);var Stream1: TBlobStream; Stream2: TStream; begin Stream1 := TBlobStream.Create(Table1Notes, bmRead); try ClientDataSet1.Edit; { Hier wird ein Blob-Stream auf andere Weise erstellt } Stream2 := ClientDataSet1.CreateBlobStream(ClientDataSet1.FieldByName('Remarks'), bmReadWrite); try Stream2.CopyFrom(Stream1, Stream1.Size); ClientDataSet1.Post; finally Stream2.Free; end; finally Stream1.Free; end; end;Plattformübergreifend:procedure TForm1.Button1Click(Sender: TObject);var Stream1, Stream2 : TStream; begin Stream1 := SQLDataSet1.CreateBlobStream(SQLDataSet1.FieldByName('Notes', bmRead); try ClientDataSet1.Edit; Stream2 := ClientDataSet1.CreateBlobStream(ClientDataSet1.FieldByName('Remarks'), bmReadWrite); try Stream2.CopyFrom(Stream1, Stream1.Size); ClientDataSet1.Post; finally Stream2.Free; end; finally Stream1.Free; end;end;