Is it possible to store files inside a TClientDataSet?
They are variable in size up to 200 kilobyte orso (highly doubtfull they will get bigger than that, but there shouldn't be a limit).
Anyways.. I tried multiple variations to the one below, using different datatypes, but I'm unable to get it done.
with MyClientDataSet do
begin
insert;
FieldByName('ID').AsString := id;
FieldByName('FileName').AsString := 'filename.ext';
FieldByName('File')....... := file;
post;
end;
Thanks for your help.
They are variable in size up to 200 kilobyte orso (highly doubtfull they will get bigger than that, but there shouldn't be a limit).
Anyways.. I tried multiple variations to the one below, using different datatypes, but I'm unable to get it done.
with MyClientDataSet do
begin
insert;
FieldByName('ID').AsString := id;
FieldByName('FileName').AsString := 'filename.ext';
FieldByName('File')....... := file;
post;
end;
Thanks for your help.