Skip to main content
100%

HPCC WU Hosted Image

✓ Published0🌍 Public
GGordonSmith
Last edited Dec 10, 2017
Created on Dec 10, 2017

This example demonstrates how to embed a base64-encoded PNG image hosted by an HPCC cluster directly into an HTML page. The visualization shows a single image result retrieved from a workunit’s result set. It uses the `@hpcc-js/comms` library’s `Workunit.attach` method to connect to a remote HPCC server and `fetchResults` with `fetchRows` to obtain the image data. The fetched base64 string is then assigned to an `<img>` element’s `src` attribute via a `data:image/png;base64` URI.

AI-generated description

Similar vizzes