I have a file that I need to reload in my application everytime it changes.
I’m checking its lastModified and I’d also like to check its md5sum before I process it.
I’m using Spring framework, in case there is something useful in there.
What’s the best way to check this? Any examples/libraries that I should check?
Thanks.
the explanation and code snippet in this link might help you
just for the record , there is a common issue in most of snippets that use bigInteger , the bigInteger class removes extra zeros at the start of the string so you might want to add a check like that