How to get HTML from a Report with output type HTML?

I have created a Report that has output type set to HTML.

How do I retrieve the actual HTML generated from this report ?

This is as far as I have gotten:

        String html = "";
        String reportCode;
        String templateCode;

        reportCode = "HTML_REPORT";
        templateCode = "DEFAULT";
        Map<String, Object> reportParams = new HashMap<>();
        reportParams.put("patient", patient);
        ReportOutputDocument outDoc = reportGuiManager.getReportResult(
                utilsService.getReport(reportCode),
                reportParams,
                templateCode,
                ReportOutputType.HTML
        );
        byte[] byteArr = outDoc.getContent();

I got it working using the following code:

        String html = "";
        String reportCode;
        String templateCode;

        reportCode = "HTML_REPORT";
        templateCode = "DEFAULT";

        Map<String, Object> reportParams = new HashMap<>();
        reportParams.put("patient", patient);

        FileDescriptor fd = reportService.createAndSaveReport(
                utilsService.getReport(reportCode),
                templateCode,
                reportParams,
                "html-report");
        try {
            InputStream inputStream = fileLoader.openStream(fd);
            html = IOUtils.toString(inputStream);
        } catch ( Exception e) {
            log.error(e.getMessage());
        }
        return html;

Will not it work if you just create a String from the bytearray you get in your first code snippet?

String html = new String(byteArr, StandardCharsets.UTF_8);