var
fs: TFileStream;
begin
fs := TFileStream.Create(FileName, fmOpenRead or fmShareDenyWrite);
try
fs.Position := 0;
// Transfer from the memory stream to the blobstream
aBlobStream := BlobField.DataSet.CreateBlobStream( BlobField, bmWrite );
try
aBlobStream.CopyFrom( fs, fs.Size );
finally
aBlobStream.Free;
end;
finally
fs.free;
end;
It would be nice if you could integrate this into your Database demo project. SVG is quickly becoming a central topic in Delphi.