Thomas Schroyen · Dec 17, 2019

Corrupted file with EnsLib.File.PassthroughService



I have a little problem that appears to my newest program. One of the purpose of my program is to  transfer a file from a path to another one.

Another person/entity places the file into a specific file ( let's call it \\Server\) but the problem is that my service (a simple EnsLib.File.PassthroughService) takes it and places it directly into my other path. The pdf file is very big and it happens almost all the time that the size of the output file is not the same as in input and so is corrupted.

My question is: is there any settings I should set to make it sure that the pdf file is completely loaded into the origin path before taking it? (By using the settings or by using code if it's necessary but I hope there is a simplier way by using the settings)

Thanks for your response,




0 246
Discussion (3)1
Log in or sign up to continue

The ConfirmComplete setting in EnsLib.File.PassthroughService allows you to specify how the service decides if a file is complete before picking it up.

Thanks for your response. Could you send me a screenshot or the name of the settings I need to use to do so? Thanks

This is a setting of any EnsLib.File.PassthroughService, found in the Additional Settings section:

The different options in the drop-down are described in the documentation that Marc linked to (here).