delphi 三层架构如果下载数据库中的二进制流文件?
1个回答
展开全部
给你个例子:
aStream:=TMemoryStream.Create;
try
frameSheet1.cxSpreadBook.AutoRecalc:=false;
frameSheet1.cxSpreadBook.BeginUpdate;
cdsTemplateBodyCONTENT.SaveToStream(aStream); //-------------------------
aStream.Position := 0; //--------------------------
frameSheet1.cxSpreadBook.LoadFromStream(aStream);
frameSheet1.cxSpreadBook.EndUpdate;
finally
aStream.Free;
end;
3层结构服务器为COM+时,一直没有保存成功过,但读取没问题
aStream:=TMemoryStream.Create;
try
frameSheet1.cxSpreadBook.AutoRecalc:=false;
frameSheet1.cxSpreadBook.BeginUpdate;
cdsTemplateBodyCONTENT.SaveToStream(aStream); //-------------------------
aStream.Position := 0; //--------------------------
frameSheet1.cxSpreadBook.LoadFromStream(aStream);
frameSheet1.cxSpreadBook.EndUpdate;
finally
aStream.Free;
end;
3层结构服务器为COM+时,一直没有保存成功过,但读取没问题
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询