When use backupFileStream writer to create .zip file and add files inside it using Xceed.Zip.ReaderWriter.ZipWriter the BackupWrite native method return (13) the data is invalid. The code sample below :
private void createZipFile(string _path)
{
try
{
FileInfo info = new FileInfo(_path);
When use backupFileStream writer to create .zip file and add files inside it using Xceed.Zip.ReaderWriter.ZipWriter the BackupWrite native method return (13) the data is invalid. The code sample below :
private void createZipFile(string _path) { try { FileInfo info = new FileInfo(_path);
Xceed.Zip.ReaderWriter.ZipItemLocalHeader oZipEntry = null; string sZipFileGUID = Guid.NewGuid().ToString(); if (!Directory.Exists(info.DirectoryName)) Directory.CreateDirectory(info.DirectoryName);
}