Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有 2 台服务器在地理位置上相距甚远。
一台服务器进行文件处理,然后将处理后的文件保存在一个目录中:
c:\已处理\
文件大小可以是 100-1GB。
第二台服务器是下载这些文件。
我可以使用哪些技术来检查文件是否正确下载?
我只需要一个校验和吗?它会根据文件的内容还是仅根据文件属性进行散列?(或者什么是最佳做法) 如果文件是 1GB,创建校验和会需要很长时间吗?
校验和可以确保下载的数据与源数据匹配。有关使其快速的讨论,请参阅什么是在 C# 中为大文件创建校验和的最快方法。