JavaScript image source on Server


I have a workflow on client side. In the workflow folder i have a folder which contains images. These images i use in a Generic JavaScript View node. I use the context.absolute.workflow.path for src.

When i deploy the workflow on the server, the images can’t be found. I tried it with the KNIME protocol knime://knime.workflow and other context variables but i don’t get it to work.

Can anyone help me?


You can use the Image Output Widget to show an image on the WebPortal. If you want to embed images in a Generic Javascript View, you’ll need to convert them into base64, which is not that easy to do, or use the server’s REST API to access them. Using the REST API, the URL has to look like this:


Kind regards,

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.