Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimizing research on file type
Message
De
17/11/2016 13:09:26
 
 
À
17/11/2016 11:26:45
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01629800
Message ID:
01643625
Vues:
24
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform