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

Re: File API Feedback

From: Aaron Boodman <aa@google.com>
Date: Tue, 30 Jun 2009 10:33:18 -0700
Message-ID: <278fd46c0906301033x718bf3e7lda01e4d6de000445@mail.gmail.com>
To: Olli Pettay <Olli.Pettay@helsinki.fi>
Cc: Thomas Broyer <t.broyer@gmail.com>, WebApps WG <public-webapps@w3.org>
It actually does in the latest version. Blob has a getBytes() method.
You can also concatenate blobs together using a new object called a

I'm in the process of updating the docs and will report back when done.

- a

On Tue, Jun 30, 2009 at 6:12 AM, Olli Pettay<Olli.Pettay@helsinki.fi> wrote:
> On 6/30/09 4:07 PM, Thomas Broyer wrote:
>> On Tue, Jun 30, 2009 at 2:25 PM, Olli Pettay wrote:
>>> On 6/30/09 1:44 PM, Ian Hickson wrote:
>>>> I'd rather just have an API that lets you split a File into a
>>>> sequence<FileData>    (where FileData is what File inherits from) of
>>>> equally
>>>> sized chunks, or something like that, than something that lets you get
>>>> chunks out in particular forms.
>>> Yeah, that sounds better. Then XHR .send() could accept FileData as a
>>> parameter.
>>> All the .getAsXXX methods would move to that interface and there should
>>> be
>>> something like
>>> FileData getFileData(long long offset, long long length)
>> For the record, Gears' Blob (the almost-equivalent of that FileData if
>> I'm not mistaken) has a slice(offset,length) method:
>> http://code.google.com/apis/gears/api_blob.html
>> (and a Blob can be passed to an HttpRequest's send() method, and
>> obtained from an HttpRequest's responseBlob property or in desktop's
>> openFiles callback; note that a File in Gears doesn't inherit Blob, it
>> rather has a 'blob' property of type Blob)
> But blob doesn't allow one to access the data (which is why I don't like the
> API).
> -Olli
Received on Tuesday, 30 June 2009 17:34:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:12:54 UTC