Hi all,
I qoute from https://developer.mozilla.org/En/Using_XMLHttpRequest#Handling_binary_data
in javascript is possible, using the The XMLHttpRequest Level 2 Specification adds new responseType attributes which make sending and receiving binary data much easier.
Something like this:
var xhr = new XMLHttpRequest();
xhr.open("GET", url, true);
xhr.requestType = "arraybuffer";
xhr.onload = function(e)
{
var arraybuffer = xhr.response; // not responseText
/* ... */
}
xhr.send();
How to get this in GWT? The class XMLHttpRequest has not a setResponseType(...) method and also has not a getResponse() method to get data, for example, as a byte[] or something similar, but has only a getResponseText() method. Is there a way to solve this?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LjktBceRc_YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment