Convert Binary Data to ImageURL

I've got icons stored as binary data & I want to pass them to a JS module for display (LeaftletJS)

The JS module requires that the icon image is passed as a URL. Is there anyway I can retrieve the icons from the database and convert these into image URL's to pass to leaflet?

Have tried this:

But it doesn't render the image, instead I get this:

15472 in that case being a reference ID for a component.


Can you share with us some prints or the OML for us to see what can be wrong?


Best regards,

Ricardo Pereira

I refresh an aggregate & iterate it to produce a URL for each, converting from binary to base64 at the same time.

Then pass that URL into the relevant URL field in leaflet JS & it doesn't return an image.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.