From c52fa7ab7010a67769ed7b46c3ff74e40193314c Mon Sep 17 00:00:00 2001 From: niksedk Date: Sat, 27 Nov 2021 20:41:20 +0100 Subject: [PATCH] Keep using gzip for ncor db --- src/ui/Logic/Ocr/NOcrDb.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);