diff --git a/src/ui/Logic/Ocr/NOcrDb.cs b/src/ui/Logic/Ocr/NOcrDb.cs index 443a7ae87..c1af833de 100644 --- a/src/ui/Logic/Ocr/NOcrDb.cs +++ b/src/ui/Logic/Ocr/NOcrDb.cs @@ -38,7 +38,8 @@ namespace Nikse.SubtitleEdit.Logic.Ocr File.Delete(FileName); } - using (Stream stream = new FileStream(FileName, FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) + //using (Stream stream = new FileStream(FileName, FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None)) + using (Stream stream = new GZipStream(File.OpenWrite(FileName), CompressionMode.Compress)) { var versionBuffer = Encoding.ASCII.GetBytes(Version); stream.Write(versionBuffer, 0, versionBuffer.Length);