I tried to access a cookie that has a [object HTMLImageElement] but when I try to echo it, it simply prints that out: [object HTMLImageElement] I want it to display the picture.
I used a canvas2image JS library, in Javascript, I was able to generate the image and display it but I want to save the html code in a cookie and just display it.
Question
htcz
Hey
I tried to access a cookie that has a [object HTMLImageElement] but when I try to echo it, it simply prints that out: [object HTMLImageElement] I want it to display the picture.
I used a canvas2image JS library, in Javascript, I was able to generate the image and display it but I want to save the html code in a cookie and just display it.
The library is this one BTW: http://www.nihilogic.dk/labs/canvas2image/
I need to get the string that is useable in a normal
<img src="">
How can I do this?
Thanks
Link to comment
https://www.neowin.net/forum/topic/1076075-display-the-picture-in-object-htmlimageelement-using-php/Share on other sites
5 answers to this question
Recommended Posts