I was looking at jquery, but I am not sure it works. The problem is that jqeury serializes a web form, where it enters the data in a field. We need to send the binary data alone.
--Toni On Wed, Jun 30, 2010 at 11:14 PM, narendra sisodiya <[email protected]> wrote: > > > On Wed, Jun 30, 2010 at 3:57 PM, Toni Ruottu <[email protected]> wrote: >> >> 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? >> >> cheers, --Toni > > I guess, xhr.sendAsBinary() shoud work > > search for string "xhr.sendAsBinary" in following code link > http://code.google.com/p/jquery-html5-upload/issues/attachmentText?id=9&aid=-4788561921002613366&name=jquery.html5_upload.js&token=279fec81f59a07b7c79ae3ffb7cb9654 > -- > ┌─────────────────────────┐ > │ Narendra Sisodiya > │ http://narendrasisodiya.com > └─────────────────────────┘ >
