diff --git a/Apewer/StorageUtility.cs b/Apewer/StorageUtility.cs index 9dce080..49f5510 100644 --- a/Apewer/StorageUtility.cs +++ b/Apewer/StorageUtility.cs @@ -506,7 +506,7 @@ namespace Apewer try { var result = new byte[0]; - using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read)) + using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { if (!stream.CanRead) return result; stream.Position = 0; @@ -551,7 +551,9 @@ namespace Apewer } return result; } - catch { } + catch (Exception ex) + { + } } return Constant.EmptyBytes; }