I downloaded the trail of UltimateZip and have been trying to follow and implement the example for: 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.ExtractFile("my file.zipt", e.OutputStream)
' Close the zip file.
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.
asked 10/8/2020 7:58:42 PM