HI
I am creating the Zip file based on the Hierarchy.. So i am recrusively go throught the enteries and get the selected path and add the FIle under the Folder. my issue is how to retrive the selected path from the selectedEntries.
ZipEntry en = zip.SelectEntries(FileName).FirstOrDefault();
if the filename having space it is throwing argument null exception,
pls see the attached sample project. like that employee structureneed to create the folder,
can u update my project and send me..
thanks and regards
Kannan
Hi,
I couldn't quite catch what exactly you are trying to achieve from the provided sample. Here a few notes that might be of help:
ZipEntry en = zip.Entries.FirstOrDefault(e => e.FileName == FileName);
Regards
Thanks for reply. I need to get the path from the SelectedEntries. because of that i am passing the string Value in the method. i got the help from the previously mentioned link.. i could nt able to achive.
eg)
i am creating the File ..
ZipEntry entry= ZipEntry.CreateFile(item.ExportTitle + ".jpg", FullParentPath, image.ToStream());
zip.Entries.Add(entry);
then i need to add the Folder below file.so i am using
ZipEntry en = zip.SelectEntries(FullParentPath).FirstOrDefault();
here not return the particular path.. can u provide one simple project to get the paricular file in any levell .. this one how to form the String.
thanks
kan