src/main/java/org/edgegallery/appstore/infrastructure/util/UploadFileUtil.java
public static String byteToHex(byte b) {
        String hex = Integer.toHexString(b & 0xFF);
        if (hex.length() < 2) {
            hex = "0" + hex;
        }
        return hex;
    }
/**
     *Convert a byte to hexadecimal and return it as a string.
     * @param b bytes.
     */
Convert a byte to hexadecimal and return it as a string.
@param b bytes.
Convert a byte to hexadecimal and return it as a string . @param b bytes .
public static String byteToHex(byte b) {
        String hex = Integer.toHexString(b & 0xFF);
        if (hex.length() < 2) {
            hex = "0" + hex;
        }
        return hex;
    }
public static String byteToHex ( byte b ) { String hex = Integer . toHexString ( b & 0xFF ) ; if ( hex . length ( ) < 2 ) { hex = "0" + hex ; } return hex ; }
Convert a byte to hexadecimal and return it as a string.
Convert a byte to hexadecimal and return it as a string .