Re: Fwd: [whatwg] what happened to sendAsBinary?

On Wed, 30 Jun 2010 13:48:47 +0200, Olli Pettay <Olli.Pettay@helsinki.fi>  
wrote:
> XHR2 related discussion happens in WebApps WG.
> Forwarding...
>
> -------- Original Message --------
> Subject: [whatwg] what happened to sendAsBinary?
> Date: Wed, 30 Jun 2010 13:27:09 +0300
> From: Toni Ruottu <toni.ruottu@iki.fi>
> To: whatwg@whatwg.org
>
>    hello
>
> We are trying to code an application that needs to send some binary
> data from javascript to a http server. The server is expecting to
> receive the data in the body of the request, and for the body to not
> include anything other than the raw data. In the old world you would
> do this with the sendAsBinary function, available at least in Firefox.
> How would you do the same thing with XHR2?

The plan is to overload send() with new types as they become available.  
The closest I suppose to "binary" is Blob object support.

See http://dev.w3.org/2006/webapi/XMLHttpRequest-2/ for details.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Wednesday, 30 June 2010 12:15:28 UTC