- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
在 HTML 5 中是否支持在 Silverlight 中真正容易做到的事情?
例如,将一个文件(由用户选择)转换为一个字节数组,该字节数组可以进行 base64 编码并传递给网络服务?
或者,创建/读取图像并能够操纵像素并将其显示在屏幕上?或者甚至将其保存到磁盘(用户选择的位置)?
如果是这样,哪些浏览器会支持它并且 API 是否一致?
谢谢
最佳答案
In HTML 5 is there any support for things which are really easy to do in Silverlight?
For example, ripping a file (chosen by the user) into an array of bytes
是的。 See this
that can be base64 encoded
and passed up to a web service?
XMLHttpRequest仍然有效。
Or, creation/reading of an image and being able to manipulate the pixels and display this on screen?
是的。结合 FileReader
与 canvas .
Or even save it to disk (location chosen by the user)?
抱歉,不可能。
不再是这样了!参见 this.
If so, which browsers would support this
我知道 Firefox 有,但是 try this在其他浏览器上。查看哪些有效,哪些无效。
and are the APIs consistent?
是的。这些被称为 standards这是有原因的。
关于silverlight - HTML5 - 它能做到吗?今天?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3271002/
我是一名优秀的程序员,十分优秀!