I would like to receive a user input image through a file upload button on my Wix site and run Python code to process the image. Converting the Python code to JavaScript is not an option, so I have attempted to use the wix-fetch API, but to my understanding there are a few problems:
-
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.
-
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!