Extracting file to a memory buffer with Developer Express AspxFileManager generates: System.IO.IOException: 'The process cannot access the file "" because it is being used by another process.'

0
I downloaded the trail of UltimateZip and have been trying to follow and implement the example for: Extracting file to a memory buffer https://doc.componentpro.com/ComponentPro-Zip/Extracting-file-to-a-memory-buffer I am using this with the Developer Express AspxFileManger to unzip on the download using the following code: Protected Sub ASPxFileManager1_FileDownloading(source As Object, e As DevExpress.Web.FileManagerFileDownloadingEventArgs) Handles ASPxFileManager1.FileDownloading Dim openfile As String = e.File.FullName.ToString ' Open an existing file. Dim zip As New Zip() zip.Open(openfile) zip.ExtractFile("my file.zipt", e.OutputStream) ' Close the zip file. zip.Close() End Sub Using zip.open() generates an error that the file being downloaded is in use. Developer Express has properties for e.OutPutStream and e.InputStream but I can’t seem to use the e.inputStream as the zip.Open argument. https://docs.devexpress.com/AspNet/DevExpress.Web.FileManagerFileDownloadingEventArgs.InputStream Any suggestions would be appreciated. Thank you.
zip
 
asked 10/8/2020 7:58:42 PM
add a comment

1 Answers

0
You may want to save the download file as another file and open that file or open the source file in memory.
 
answered 10/9/2020 3:04:40 PM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged zip or ask your own question.