[whatwg] constructing a FileAPI blob for XHR2
Dmitry Titov
dimich at chromium.org
Mon Jul 26 12:21:10 PDT 2010
Perhaps BlobBuilder from this
spec<http://dev.w3.org/2009/dap/file-system/file-writer.html>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.
On Sun, Jul 25, 2010 at 4:58 AM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 7/25/10 4:44 AM, Toni Ruottu wrote:
>
>> I am hoping that I could, in the future, send arbitrary binary data
>> with XHR. The XHR level 2 specification tells me that to send binary
>> data I need to do send(blob). Blob is defined in FileAPI which tells
>> me how to read data to a blob from the hard disk.
>>
>
> 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.
>
> -Boris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100726/2b762b43/attachment-0002.htm>
More information about the whatwg
mailing list