Hi Bruno!
I'm not sure I get the solution... I'm loading a rtf file to a MS-SQL field of type varbinary(max)
var
Blob, fs : TStream;
begin
blob := FDQuery1.CreateBlobStream(FDQuery1.FieldByName('Document'), bmWrite);
try
blob.Seek(0, soFromBeginning);
fs := TFileStream.Create(eFileName.Text, fmOpenRead or fmShareDenyWrite);
try
blob.CopyFrom(fs, fs.Size);
finally
fs.Free
end;
finally
blob.Free
end;
end;
In the form to edit, I set DataSource and FieldName properties in a TDBAdvRichEditorRTFIO component connected to a TDBAdvRichEditor because if I only use a TDBAdvRichEditor editor I receive Invalid stream format error.
Can you post some seudo-code to explain your solution?
Best Regards
Francisco Alvarado