diff --git a/Service.EDMIService/EDMIService.vb b/Service.EDMIService/EDMIService.vb index 01e344a8..ed4ce628 100644 --- a/Service.EDMIService/EDMIService.vb +++ b/Service.EDMIService/EDMIService.vb @@ -239,8 +239,8 @@ Public Class EDMIService Using oSource As FileStream = IO.File.OpenRead(oFullPath) oSource.CopyTo(oDestination) End Using - oDestination.Seek(0, SeekOrigin.Begin) + Dim oMessage As New Messages.DocumentStreamResponse() With { .FileName = oFileInfo.Name, .FileContents = oDestination diff --git a/Service.EDMIService/IEDMIService.vb b/Service.EDMIService/IEDMIService.vb index cef612e8..ee963c52 100644 --- a/Service.EDMIService/IEDMIService.vb +++ b/Service.EDMIService/IEDMIService.vb @@ -27,26 +27,6 @@ Interface IEDMIService Function ExecuteNonQuery(SQL As String) As NonQueryResult #End Region -#Region "Document (with FileContainer)" - ' - 'Function NewFile(FileName As String, Contents As Byte()) As DocumentResultOld - - ' - 'Function UpdateFile(DocObject As DocumentObject, Contents As Byte()) As DocumentResultOld - - ' - 'Function GetFile(DocObject As DocumentObject) As DocumentResultOld - - ' - 'Function DeleteFile(DocObject As DocumentObject) As Boolean - - ' - 'Function GetDocumentByDocumentId(DocumentId As Int64) As DocumentResultOld - - ' - 'Function GetDocumentByContainerId(ContainerId As String) As DocumentResultOld -#End Region - #Region "Document (New)" Function ImportFile(Data As Messages.DocumentImportRequest) As Messages.DocumentImportResponse