EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElZipReader Extract Method

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#28153
Posted: 01/27/2014 13:39:44
by Stalin Vinces (Standard support level)
Joined: 08/08/2011
Posts: 7

Hi,

I'm using this method to extract the files from a .zip file with two files inside. When I invoke it, the function pass but no exception is thrown. But the file is not unzipped.

The implementation code is:

Code
...
  Dim sbb_unzip As New TElZipReader

            Try
                sbb_unzip.Open(lv_Ruta + file, False)
            Catch ex As Exception
                Throw New Exception(ex.Message)
            End Try

            Try
                sbb_unzip.Extract(file, lv_Ruta)
            Catch ex As Exception
                Throw New Exception(ex.Message)
            End Try

            sbb_unzip.Close()
...


I'm kinda confused because in your examples you use an arraylist on the first parameter in extract function.
#28154
Posted: 01/27/2014 13:46:38
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

What is 'file' variable in your code? ArrayList should contain a list of TElArchiveDirectoryEntry objects to extract. If 'file' in your code is a string then our code process it as a file mask and you get unexpected result.

Reply

Statistics

Topic viewed 420 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!