Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
How can I convert a image (media entry) to an base64 code?
Solved! 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
I solved it. I create a function with return type BLOB and this line:
var result = MediaEntities[image].GetImage();