-2

I'm working on AgilePoint platform and I'm trying to save drawing from form I've built into SharePoint List. So first of all I'm converting the drawing (signature) to URI code, and now I want to convert it to img file JPG/PNG or whatever. [enter image description here][1] [1]: https://i.stack.imgur.com/TaBLq.png

  • this is the drawing(signature) i'm trying to convert to URI and then to png/jpg.

I've converted it to URI by this code:

function image() {
 var URI = 'x';
var options = {};
options.fieldId = 'Drawing1';
eFormHelper.getFieldValue (options, function (result) 
  { 
  if (result.isSuccess) //check if is success
    { 
    URI = result.data;
      
    }
});
}
  • But now i don't know how to save it into SharePoint List. thank you for helping.
  • 2
    Could you please post an example of your URI code? – Ingo Steinke Aug 29 '23 at 07:18
  • Please provide enough code so others can better understand or reproduce the problem. – Community Aug 29 '23 at 07:18
  • Have you tried using a data URL? The URI you created is probably already a Base64 encoded image. See [MDN docs - data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs). See [SO answer: URI encoded images](https://stackoverflow.com/questions/8499633/how-to-display-base64-images-in-html) – Peter Krebs Aug 29 '23 at 08:00
  • yeah i've tried here: https://stackoverflow.com/questions/77006281/saving-drawing-signature-in-agilepoint-to-sharepoint-list-using-js – Shahar Hayoun Aug 30 '23 at 19:46

0 Answers0