1. I could send the image in base64 encoding in order to work with fetch API, but Wix does not support Image or FileReader APIs, which would allow me to carry out this conversion.
2. I could alternatively send the image URL as the parameter, but Wix Code seems to only support manually uploading a user input image into the Media Manager (which is out of the question), and the Media Manager seems to be the only way to assign a URL to an image on my Wix site.
I am able to achieve the correct functionality through an external site embed, but would like to avoid this hassle if possible.
Thanks in advance!