/ Published in: C#
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
public static Hashtable BuildFileTable(Stream s)
{
ZipEntry ze = zips.GetNextEntry();
while (ze != null)
{
if (ze.IsFile)
{
retVal.Add(ze.Name, GetContentFromZipEntry(ze, zips));
}
ze = zips.GetNextEntry();
}
return retVal;
}
public static string GetContentFromZipEntry(ZipEntry ze, ZipInputStream zips)
{
string retVal = string.Empty;
if (ze.Offset > int.MaxValue || ze.Size > int.MaxValue)
{
}
int numRead = zips.Read(buffer, Convert.ToInt32(ze.Offset), buffer.Length);
retVal = sr.ReadToEnd().Trim();
return retVal;
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                