private static String base64Config2file(String base64, String configPath, String configName) {
        byte[] bytes = Base64.getDecoder().decode(base64);
        try {
            Path dir = Paths.get(configPath);
            if (!Files.exists(dir)) {
                Files.createDirectories(dir);
            }
            Path filePath = Paths.get(configPath + File.separator + configName);
            Files.write(filePath, bytes, CREATE, TRUNCATE_EXISTING);
            return filePath.toAbsolutePath().toString();
        } catch (Throwable e) {
            throw new RuntimeException(e);
        }
    }
Decode base64 str and save it to file

@return the file path
core/src/main/java/kafka/automq/table/CatalogFactory.java