Click here to Skip to main content
15,891,905 members

Comments by Member 11593359 (Top 22 by date)

Member 11593359 21-Sep-15 4:20am View    
thank you for your reply
i am new in c# so is there any example or solution for this
Member 11593359 13-Sep-15 4:29am View    
Thank you for your reply,
MaxSize= 1000000 * 1024; // 100k
In Case It Enter in Else no File Will Be copied,
Thanks
Member 11593359 10-Sep-15 3:39am View    
Yes this Is my problem i can't create zip file from my list using memory stream max size
Member 11593359 9-Sep-15 17:14pm View    
thank you for your reply,
i need to avoid out of memory exception so every time i check if memorystream.length exceeded the limit so i append it to file stream here in my code it replace with old one so, the result zip files doesn't has all file , so how can isolve it or is there any way to do the same thing (using io .compression )
Member 11593359 8-Sep-15 9:55am View    
Thank you for your reply
There is already library Do The require Ionic.Zip
using (ZipFile zip = new ZipFile())
{
zip.AddDirectory(sFolderPath);
zip.Comment = "This zip was created at " + System.DateTime.Now.ToString("G");
zip.MaxOutputSegmentSize = 10000 * 1024; // 100k segments
zip.Save(sbZipFolderName.ToString());
SegmentsCreated = zip.NumberOfSegmentsForMostRecentSave;
}
but i need to remove this library from my project and Use System.IO.Compression
Thanks