Z
zgp
Unregistered / Unconfirmed
GUEST, unregistred user!
我用ClientDataset编写以下代码时不能将图片导入Blob字段,但是其它字段均被成功赋值.
不知何故,望高手指点!
clientdataset1.Close;
clientdataset1.FetchParams;
clientdataset1.params.parambyname('ID').AsInteger:=2;
clientdataset1.params.parambyname('MaterialFileName').AsString:=trim(edit1.Text);
clientdataset1.params.parambyname('PivotalWord_1').AsString:=trim(edit1.Text);
clientdataset1.params.parambyname('MaterialType').asstring:='.JPG';
clientdataset1.Params.parambyname('MaterialContent').DataType:=ftblob;
Clientdataset1.Params.ParamByName('MaterialContent').LoadFromFile(trim(edit13.Text),ftblob);
clientdataset1.Open;
不知何故,望高手指点!
clientdataset1.Close;
clientdataset1.FetchParams;
clientdataset1.params.parambyname('ID').AsInteger:=2;
clientdataset1.params.parambyname('MaterialFileName').AsString:=trim(edit1.Text);
clientdataset1.params.parambyname('PivotalWord_1').AsString:=trim(edit1.Text);
clientdataset1.params.parambyname('MaterialType').asstring:='.JPG';
clientdataset1.Params.parambyname('MaterialContent').DataType:=ftblob;
Clientdataset1.Params.ParamByName('MaterialContent').LoadFromFile(trim(edit13.Text),ftblob);
clientdataset1.Open;