Perhaps BlobBuilder from <a href="http://dev.w3.org/2009/dap/file-system/file-writer.html">this spec</a> is the closest API to what you describe, if it doesn't fit your use case - please describe the case so the spec�authors�could consider it.<br>
<br><div class="gmail_quote">On Sun, Jul 25, 2010 at 4:58 AM, Boris Zbarsky <span dir="ltr"><<a href="mailto:bzbarsky@mit.edu">bzbarsky@mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 7/25/10 4:44 AM, Toni Ruottu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am hoping that I could, in the future, send arbitrary binary data<br>
with XHR. The XHR level 2 specification tells me that to send binary<br>
data I need to do send(blob). Blob is defined in FileAPI which tells<br>
me how to read data to a blob from the hard disk.<br>
</blockquote>
<br></div>
Various other specifications describe other ways of producing Blobs (e.g. the Capture API has some ways that don't involve files). �It should be pretty straightforward to define some ways to create Blobs from in-memory data, if there's nothing out there yet that does so.<br>
<font color="#888888">
<br>
-Boris<br>
</font></blockquote></div><br>