import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.zip.CRC32;
import java.util.zip.CheckedInputStream;
public class FileToCRCUtil {
public static String getCRC32(String fileUri) {
CRC32 crc32 = new CRC32();
FileInputStream fileinputstream = null;
CheckedInputStream checkedinputstream = null;
String crc = null;
try {
fileinputstream = new FileInputStream(new File(fileUri));
checkedinputstream = new CheckedInputStream(fileinputstream, crc32);
while (checkedinputstream.read() != -1) {
}
crc = Long.toHexString(crc32.getValue()).toUpperCase();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {<