We are migrating data to Azure file storage and want to validate the upload after it is complete before deleting the file from the local server.
Code below works fine, but I'm a little unclear from the docs on how to validate the file afterwards.
I was going to compare the byte count, but it looked like using transactionalCRC would work but I can't seem to get it implemented
byte[] theFile = UploadHelper.GetFileAsByteArray(theUpload);
CloudFile theCloudFile = rootDir.GetFileReference(theUpload.Name);
Stream theMemoryStream = new MemoryStream(theFile);
await theCloudFile.UploadFromStreamAsync(theMemoryStream);
Or if I'm overthinking this and there is a better way I'd appreciate the insight.
Thank you,