var resourcedata = Resources.ResourceManager.GetObject("test"); if (resourcedata != null) { byte[] zipFile; BinaryFormatter bf = new BinaryFormatter(); using (MemoryStream ms = new MemoryStream()) { bf.Serialize(ms, resourcedata); zipFile = ms.ToArray(); } System.IO.File.WriteAllBytes(myPath, zipFile); ZipFile.ExtractToDirectory(myPath, targetPath); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)