reset Accessor to beginning before attempting to detect binary or text
This commit is contained in:
parent
0921852b48
commit
3be465d5bd
@ -83,6 +83,8 @@ namespace UniversalEditor.UserInterface.Pages
|
||||
{
|
||||
int len = 2048;
|
||||
len = (int)Math.Min(len, acc.Length);
|
||||
|
||||
acc.Seek(0, IO.SeekOrigin.Begin);
|
||||
byte[] b = acc.Reader.ReadBytes(len);
|
||||
acc.Seek(-len, IO.SeekOrigin.Current);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user