如何比较本地文件与Amazon s3文件 [英] How to compare local file with Amazon s3 file

查看:385
本文介绍了如何比较本地文件与Amazon s3文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发桌面Java应用程序。它需要检查我的S3服务器上的特定文件。

I'm working on a desktop Java application. It needs to check for a specific file on my S3 server.

我不想下载整个文件进行比较,我需要找出是否服务器是较新的,然后是本地的,然后下载和替换。

I don't want to download the entire file to compare, I need to find out if the one in the server is newer then the local one and then download and replace.

我不知道如何做检查如果更新的可用部分。

I'm not sure how to do the check if newer available part of this.

我听说过哈希作为一个方法,但我没有经验,如何在两个方面(本地和通过S3)

I've heard of hashing as a method but I have little experience with how to actually do that on both fronts (locally and via S3)

推荐答案

获取远程文件的散列:
如何获取亚马逊S3上的文件的md5sum

To get the hash of the remote file: How to get the md5sum of a file on Amazon's S3

本地文件的哈希值:
在Java中获取文件的MD5校验和

这篇关于如何比较本地文件与Amazon s3文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆