我有一个形象,用户画在画布上,我想保存的图像在服务器上。
I have an image that the user drew on a canvas and i want to save that image on the server.
这些线路在我的iPad很好地工作,但不是在我的Android(版本2.3.3)的浏览器:
These lines work well on my ipad but not on my android(ver 2.3.3) browser:
var testCanvas = document.getElementById("sketchpad");
var canvasData = testCanvas.toDataURL("image/png");
如果我提醒canvasData我只得到:
If i alert canvasData i only get:
数据:
我缺少的东西?是否有可能做的android或者我应该寻找其他的方法,插件等?
Am I missing something? Is it possible to do on android or should i be looking at other methods, plugins, etc?
不幸的是它不支持您的版本(我认为这是唯一支持ICS),看看这个问题的报道
Unfortunately it isn't supported in your version (i think it's only supported in ICS), have a look at this issue reported
http://$c$c.google.com/p/android/issues/detail?id=16829
目前被认为是某种JavaScript实现增加对它的支持,但我还没有尝试过自己
There is supposed to be some sort of JavaScript implementation to add support for it, but i haven't tried it myself
HTTP://$c$c.google.com/p/todataurl-png- JS /
上一篇:调试即使在Visual Studio编译器的错误运行编译器、错误、Visual、Studio
下一篇:Datatable.acceptchanges()提交的数据表数据表、Datatable、acceptchanges