The problem is how to load image(*.bmp, *.jpeg or anything ) into a node in xml document.(Just like TClientDataSet do it when a Field is Blob)I've used XMLDatabinding Wizard and created a pas file from the xml schema. The node type is hexBinary. I cannot simply do something like this:
procedure CreateXML;
var
CmdNode: IXMLCmdType;begin
with DMClient.XMLDoc do
begin
Active:= True;
ChildNodes.Clear;
CmdNode := GetCommand( DMClient.XMLDoc);
with CmdNode do
begin
CmdIndex:= IntToStr(Cmd);
with Params.Group do
begin
Name:= aGroupName;
Image:=// <-----???
end;
end;
Version:='1.0';
SaveToStream(cmdStream);
Active := False ;
end;
end;
procedure CreateXML;
var
CmdNode: IXMLCmdType;begin
with DMClient.XMLDoc do
begin
Active:= True;
ChildNodes.Clear;
CmdNode := GetCommand( DMClient.XMLDoc);
with CmdNode do
begin
CmdIndex:= IntToStr(Cmd);
with Params.Group do
begin
Name:= aGroupName;
Image:=// <-----???
end;
end;
Version:='1.0';
SaveToStream(cmdStream);
Active := False ;
end;
end;