My use case is, I need to download the file from SharePoint and do some processing and upload it back.
In my case sometimes the file that is downloaded is corrupt. I could see some incomplete file in CustomXML folder after unzipping the docx file.
Is there any way to verify if the file after downloaded is corrupt or not programmatically?
Can we use cTag to verify if the file is changed during the process as the file downloaded while uploading is not corrupted?
What is the proper way of doing it?