File content changes during download

Gurucharan 1 Reputation point
2022-05-06T04:55:26.453+00:00

Our application usage the filewatcher to watch a specific kind of file. If any change is detected in the file, the file content will be converted to zipped using CompressionOption.Normal and it will be transferred to another PC within same network. Other PC will download the file by using the stream received. We sometime face an issue during download. The filewatcher raises the event thrice for 1 file modification and our download logic triggers thrice. During this period, one particular kind of 1KB binary file changes to 24KB file and the data within gets changes completely. This happens only when the file is being used. Otherwise the download working fine always. Any help will be appreciated

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,301 questions
{count} votes