Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing research on file type
Message
From
17/11/2016 13:09:26
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01629800
Message ID:
01643625
Views:
23
>You should really refactor the above to implement IDisposable on FileStream.

Yes, that's correct. It is like that on all other places used. Once I get back at this one, it will be adjusted for that standard as well.

>Look at the System.IO.Compression library. You can open a zip file, get a list of all entries and, from that, get the stream for each entry. See example here:
>https://msdn.microsoft.com/en-us/library/system.io.compression.ziparchive.entries(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2
>but for each entry call the Open() method instead which will return a stream

I resolved the issue by only extracting the required XML file for analyzing the content of the file. Basically, it went from a few minutes to instant process.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform