访问从Javascript,阿贾克斯,IE浏览器的二进制数据:可以responseBody可以从Javascript(不VB)读?浏览器、二进制数、阿贾克斯、Javascript

由网友(Fuck、二货°)分享简介:首先,我知道这样的问题:First of all, I am aware of this question:http://stackoverflow.com/questions/1095102/how-do-i-load-binary-image-data-using-javascript-and-xmlhtt$p$...

首先,我知道这样的问题:

First of all, I am aware of this question:

http://stackoverflow.com/questions/1095102/how-do-i-load-binary-image-data-using-javascript-and-xmlhtt$p$pquest

和专最佳答案其中,http://emilsblog.lerch.org/2009/07/javascript-hacks-using-xhr-to-load.html.

所以访问在Javascript中使用Firefox的二进制数据(以及更高版本的Chrome,实际上似乎工作过,不知道歌剧)。到目前为止,一切都很好。 但我还是希望能找到一种方法来访问与现代IE二进制数据(最好是IE 6,但至少IE 7+),而不使用VB。 它已经提到,XHR.messageBody是行不通的(如果它包含零字节),但我想知道,这可能已经解决了与新版本;或者有可能是另外的设置,让简单的​​二进制数据的访问。

So accessing binary data from Javascript using Firefox (and later versions of Chrome which actually seem to work too; don't know about Opera). So far so good. But I am still hoping to find a way to access binary data with a modern IE (ideally IE 6, but at least IE 7+), without using VB. It has been mentioned that XHR.messageBody would not work (if it contains zero bytes), but I was wondering if this might have been resolved with newer versions; or if there might be alternate settings that would allow simple binary data access.

具体使用情况对我来说是访问一个Web服务是连接codeD使用二进制数据传输格式(包括字节的组合是不合法的UTF-8编码)返回的数据。

Specific use case for me is that of accessing data returned by a web service that is encoded using a binary data transfer format (including byte combinations that are not legal in UTF-8 encoding).

推荐答案

我想答案是简单的不,按照这个帖子:http://stackoverflow.com/questions/1919972/how-do-i-access-xhr-responsebody-from-javascript

I guess answer is plain "no", as per this post: http://stackoverflow.com/questions/1919972/how-do-i-access-xhr-responsebody-from-javascript

(或:使用VBScript来帮助)

(or: "use VBScript to help")

阅读全文

相关推荐

最新文章