I've an issue with the following line in IE9:

canvas.toDataURL('image/png')

When I run this line, IE9 doesn't display my PNG and gives me this error:

SCRIPT122: La zone de données passée à un appel système est insuffisante

Does it mean that the URL is too long to be correctly interpreted? How can I fix that?

Any help is appreciated. Thank you in advance…

1

There are 1 answers

0
Zorkzyd On

Thanks to this link ( danielmclaren.com/node/90 ), I finally found a solution to display PNG in IE9.

The thing is I have to use $_POST to retrieve the data of the image instead of using the URL and a $_GET. IE9 doesn't support very long URL and cut off the data.

All the process is described on the GitHub of FabricJS:
github.com/kangax/fabric.js/issues/172#issuecomment-6058563