From 31e420c09434e3c7d7ac274e514bcaa27204461f Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 31 Dec 2017 09:03:27 +0400 Subject: [PATCH] missing BinaryStream update. --- Image.Convert/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Image.Convert/Program.cs b/Image.Convert/Program.cs index 6895f9ea..f930c3c0 100644 --- a/Image.Convert/Program.cs +++ b/Image.Convert/Program.cs @@ -44,7 +44,7 @@ namespace GARbro void PrintMetaData (string filename) { - using (var file = File.Open (filename, FileMode.Open, FileAccess.Read)) + using (var file = BinaryStream.FromFile (filename)) { var format = ImageFormat.FindFormat (file); if (null == format) @@ -60,7 +60,7 @@ namespace GARbro void ConvertFile (string filename, ImageFormat format) { ImageData image; - using (var file = File.Open (filename, FileMode.Open, FileAccess.Read)) + using (var file = BinaryStream.FromFile (filename)) { image = ImageFormat.Read (file); if (null == image)