Convert image to Base64


This is a companion discussion topic for the original entry at https://kni.me/w/s7R123o8SSQ6h1v4

Hi,

I have tried the flow, it is working fine in local client Knime but when run in Knime server, it showed the error like the attached image, both method in this workflow gave the same error.
image

I also found out that the converted base64 string are different between local client and Knime Server.

Thanks

Hi @tansk,

its a bit odd that the svg cannot be rendered on the Server - however, this should not have to do with the base64 image decoding but with a different error. However, image generation does work with your workflow on the server, right? I updated the workflow so that it uses another image, so that this part should work for now.

If you send the base64-images via email, does this work correctly on either server or locally with either of the wo methods? It seems to me that there is some difference in encoding (UTF-8 vs ASCII for example) - but maybe your email program is smart enough to know the difference and act correctly.

If not, could you post the strings please so that we can investigate?

Kind regards,
Lukas

1 Like