MemoryStream xmlfileStream = new MemoryStream(); xmlfileStream.Seek(0, SeekOrigin.Begin); dsk.WriteXml(xmlfileStream);//dsk <--- this id a dataset MemoryStream ms = new MemoryStream(); ms.Seek(0, SeekOrigin.Begin); using (Ionic.Zip.ZipFile zipFile = new Ionic.Zip.ZipFile()) { zipFile.AddEntry(ketab.Nam+".xml", xmlfileStream); xmlfileStream.Flush(); zipFile.Save(ms); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)