public static String getFileNameFromPathOrUrl(String originalStr) {
        if (originalStr == null || originalStr.length() == 0) {
            throw new IllegalArgumentException("the arg: originalStr is illegal");
        }

        int lastSlashIndex = originalStr.lastIndexOf("/");
        if (lastSlashIndex == -1) {
            return originalStr;
        }

        return originalStr.substring(lastSlashIndex + 1);
    }