Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Incident Reports » Incident Reports Addressed for Version 4.49 » View Incident Report |
Serious |
Reported By: Elliot Byrne Reported On: 10/12/2020 For: Version 4.49 Build 1 |
Client: procedure TForm1.Button1Click(Sender: TObject); var TempFileStream: TFileStream; begin with DBISAMSession1 do begin Active:=True; CallRemoteProcedure('StreamFile'); TempFileStream:=TFileStream.Create('c:\temp\output.bkp',fmCreate); RemoteParams[0].SaveToStream(TempFileStream); FreeAndNil(TempFileStream); end; end; Server: procedure TForm1.DBISAMEngine1ServerProcedure(Sender: TObject; ServerSession: TDBISAMSession; const ProcedureName: string); var TempFileStream: TFileStream; begin if SameText(ProcedureName,'StreamFile') then begin TempFileStream:=TFileStream.Create('c:\temp\input.bkp',fmOpenRead or fmShareExclusive); with ServerSession.RemoteParams.CreateParam(ftBlob,'BackupFile') do LoadFromStream(TempFileStream,ftBlob); FreeAndNil(TempFileStream); end; end; procedure TForm1.FormCreate(Sender: TObject); begin with DBISAMEngine1 do begin Active:=True; AddServerProcedure('StreamFile',''); AddServerProcedureUser('StreamFile','Admin',[prExecute]); end; end;
This web page was last updated on Wednesday, October 30, 2024 at 11:41 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |