I need to get the image with the signature made with the jSignature plugin, but when it comes to showing or getting the path / string / image encoded in base64, it does not work for me.
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.slim.min.js" integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/jSignature/2.1.2/jSignature.min.js" integrity="sha256-D7kWEIHWLFrjqBvSjtsbAWsGSn89lacfFhOShSU/Xuk=" crossorigin="anonymous"></script>
<label>Firma:</label>
<div id="firma1" style="border: 1px solid"></div>
<script>
$(document).ready(function(){
$("#firma1").jSignature();
});
var rutaImagenFirma1 = $("#firma1").jSignature("getData", "image");
</script>
In this last line is where in theory I get the image encoded in base64, but it appears incomplete. There is a piece where it appears ... and there are missing letters / symbols. Since I show this route, I paste it in the browser and the image is not displayed (in the pathImageFirm is missing before "data:" since the program gives me the route without that piece.
I need to get the signature as a base64 encoded image.