byte[] dataFromBlob = item.BlobData; using (MemoryStream ms = new MemoryStream(dataFromBlob)) { using (ZipArchive zipArchive = new ZipArchive(ms)) { foreach (var entry in zipArchive.Entries) { using (var ims = new MemoryStream()) { if (!entry.FullName.Contains(".")) { string entryfullname = entry.FullName.Substring(0, entry.FullName.Length - 1); //entry.Open().CopyTo(ims); //File.WriteAllBytes(filePath + entryfullname, ims.GetBuffer()); I do not know how do I read files from inside this entryfullname which is a folder and inside the folder there are files. } else { entry.Open().CopyTo(ims); File.WriteAllBytes(filePath + entry.FullName, ims.GetBuffer()); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)