Hi Could you please tell me how do i give the ZipPath , for my testing purpose iam hotcoding the value as "C:\zipps\one.zip", it is not returning any value to the variable S
Dim s As New ZipInputStream(File.OpenRead(ZipPath))
Dim theEntry As ZipEntry
theEntry = s.GetNextEntry()
Do Until theEntry Is Nothing
Dim directoryName As String = Path.GetDirectoryName(theEntry.Name)
Dim fileName As String = Path.GetFileName(theEntry.Name)
'// create directory
Directory.CreateDirectory("C:\zipps\")
If (fileName <> String.Empty) Then
Dim StreamWriter As FileStream = File.Create(theEntry.Name)
Dim Size As Integer = 2048
Dim data(2048) As Byte
While (True)
Size = s.Read(data, 0, data.Length)
If (Size > 0) Then
StreamWriter.Write(data, 0, Size)
Else
Exit While
End If
End While
StreamWriter.Close()
End If
theEntry = s.GetNextEntry()
Loop
s.Close()
could you please help me in this.
thanks and regards
rizwan