|
|
@ -506,7 +506,7 @@ namespace Apewer |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
var result = new byte[0]; |
|
|
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; |
|
|
if (!stream.CanRead) return result; |
|
|
stream.Position = 0; |
|
|
stream.Position = 0; |
|
|
@ -551,7 +551,9 @@ namespace Apewer |
|
|
} |
|
|
} |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
catch { } |
|
|
catch (Exception ex) |
|
|
|
|
|
{ |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
return Constant.EmptyBytes; |
|
|
return Constant.EmptyBytes; |
|
|
} |
|
|
} |
|
|
|