W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

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

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 30 Jun 2010 14:10:17 +0200
To: "WebApps WG" <public-webapps@w3.org>, "Olli Pettay" <Olli.Pettay@helsinki.fi>, Olli@pettay.fi
Cc: toni.ruottu@iki.fi
Message-ID: <op.ve332zfs64w2qv@annevk-t60>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:39 GMT