How to save a html generated image to Wix Dataset?

I have to utilise a html element to generate an image (QRCode) how can I save this image to my Wix Dataset? this is a final step in my development of my project, it would be great if there is an easy way to do this? @yisrael-wix

Not quite sure what you mean. This html-element, is that the html-component? And inside that, you generate a QR-code and you want to store that qr-code inside a Wix table?
If so, the following scenario would be worth trying:

  1. once you have generated the image inside the html-component, postMessage it back to the main Wix Page
  2. once received, add this URL to a (hidden) image with the src attribute and .save() the row

Hi thanks for your response, I have managed to find a work around and it seems to work effectively however I am unsure if the code is correct.