Html5 Canvas: How To Save And Reopen Image From Server
I draw something with html5-canvas. then i want to save it, and when the page is loaded again, I want to load the image I saved back to the canvas. I succeed with saving the data
Solution 1:
In order to save the file properly you need to decode the base64 data (and save as png):
file_put_contents('backpicture.png', base64_decode($str));
Post a Comment for "Html5 Canvas: How To Save And Reopen Image From Server"