How can I convert a image (media entry) to an base64 code?
Go to Solution.
I solved it. I create a function with return type BLOB and this line:
var result = MediaEntities[image].GetImage();
You can look into using the snippet:
var encodedValue = base64EncodeBytes(undefined /* not ready for baseType of "JSON" yet*/);
I know this function but i believe its not work with MediaEntities.
EDIT: Maybe I need a step that convert the image to an byte array