L
lbwave
Unregistered / Unconfirmed
GUEST, unregistred user!
client端
procedure TForm1.Button1Click(Sender: TObject);
var
s:string;
ss:TstringStream;
mm:Tmemorystream;
begin
if not cnn.Connected then
cnn.Open ;
ss:=tstringstream.Create(s);
mm:=Tmemorystream.create;
mm.LoadFromFile('d:/test/l.bmp');
ss.CopyFrom (mm,mm.size);
cnn.AppServer.setperson('1234',ss.datastring,mm.size);
mm.free;
ss.free;
end;
appserver:
procedure TTPhotoSvr.SetPerson(const IDD: WideString;
Bitmap: OleVariant;
var retFlage: OleVariant);
begin
//川过来后 bitmap 变为 varOlestr 类型,cpu window 察看,
//将bitmap->widestring
end;
各位有更好的透过DCOM 接口传图片的方法?比由重筹
procedure TForm1.Button1Click(Sender: TObject);
var
s:string;
ss:TstringStream;
mm:Tmemorystream;
begin
if not cnn.Connected then
cnn.Open ;
ss:=tstringstream.Create(s);
mm:=Tmemorystream.create;
mm.LoadFromFile('d:/test/l.bmp');
ss.CopyFrom (mm,mm.size);
cnn.AppServer.setperson('1234',ss.datastring,mm.size);
mm.free;
ss.free;
end;
appserver:
procedure TTPhotoSvr.SetPerson(const IDD: WideString;
Bitmap: OleVariant;
var retFlage: OleVariant);
begin
//川过来后 bitmap 变为 varOlestr 类型,cpu window 察看,
//将bitmap->widestring
end;
各位有更好的透过DCOM 接口传图片的方法?比由重筹