Hi, I wish to post an image and some related text to a Node-Red API.
The API is working at the web when I post an URL for the image and if I post the image itself.
But with Kodular/AppInventor the solution I encountered was to post BASE64 along other strings using the Web Post Text block.
NOTE: I am posting a Kodular question here because here is the discussion about BASE64 conversion and probably this problem would show up in App Inventor as well.
The problem is that the image component on the Node-Red side is not recognizing the string as an BASE64 image and is throwing the error: Error: ENAMETOOLONG: name too long
I noticed that the string that was arriving started as: iVBORw0KGgoA....
And after some research I found it should start as: "data:image/jpeg;base64,iVBORw0KG..."
But adding this preamble did nothing and the error message remains the same.
The image component in Kodular only shows the image when converted back from base64 without preamble.
My relevant blocks are as below:
Assistance welcome.
