Skip to content

Commit

Permalink
Revert the change in FileBackedDataSource.CopyTo
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekbochenek committed Oct 21, 2024
1 parent 8b5ef41 commit a4ecf8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/POIFS/NIO/FileBackedDataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ public override void CopyTo(Stream stream)
{
//byte[] tempBuffer = new byte[stream.Length];
//fileStream.Read(tempBuffer, 0, tempBuffer.Length);
stream.Write(fileStream.GetBuffer(), 0, (int)fileStream.Length); }
byte[] tempBuffer = fileStream.ToArray();
stream.Write(tempBuffer, 0, tempBuffer.Length); }

public override long Size
{
Expand Down

0 comments on commit a4ecf8f

Please sign in to comment.