TCPDF and base64 image
问题 Good Afternoon, I have a problem with insert an image in a PDF document with TCPDF lib. The image is caught from JSignature in this manner: $uri=base64_decode($_POST['firma']); $filename=SIGNATURE_IMAGE_PATH.ucfirst(strtolower(($_POST['cognome']))).ucfirst(strtolower(($_POST['nome'])))."-".$birthday.".png"; $ret=file_put_contents($filename, $uri); In another PHP page I can view image correctly in this manner: <?php $string=base64_encode(file_get_contents(str_replace(" ", "", SIGNATURE_IMAGE