Hi.
At this code path, contents of supplied Stream are read into a byte buffer. But then it is not written anywhere. It seems like there is a binaryWriter.Write(buffer) missing after the read from originating stream. Or, even better, change to using Stream.CopyTo instead and avoid the BinaryWriter object.
|
// no close or the like for data.Payload - we are not the owner |
Hi.
At this code path, contents of supplied Stream are read into a byte buffer. But then it is not written anywhere. It seems like there is a
binaryWriter.Write(buffer)missing after the read from originating stream. Or, even better, change to usingStream.CopyToinstead and avoid theBinaryWriterobject.FileCache/src/FileCache/FileCacheManager.cs
Line 270 in 4c7482b