public static byte[] loadFile(final String path) {

        Preconditions.checkNotNull(path);

        InputStream fis = null;
        try {
            System.out.println(path);
            fis = new FileInputStream(path);

            BufferedInputStream bis = new BufferedInputStream(fis);
            byte[] byteArray = new byte[5121];
            bis.read(byteArray, 0, byteArray.length);
            return byteArray;

        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException(e);
        } finally {
            if (fis != null) {
                try {
                    fis.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }