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 14:55:26 -0700
Message-ID: <278fd46c0906301455r29ce929av2f51de763fe04ac0@mail.gmail.com>
To: Olli Pettay <Olli.Pettay@helsinki.fi>
Cc: Thomas Broyer <t.broyer@gmail.com>, WebApps WG <public-webapps@w3.org>
Ok, it's live now. You can check out the Blob.getBytes() method here:

http://code.google.com/apis/gears/api_blob.html

And the new BlobBuilder object here:

http://code.google.com/apis/gears/api_blobbuilder.html

- a

On Tue, Jun 30, 2009 at 10:33 AM, Aaron Boodman<aa@google.com> wrote:
> It actually does in the latest version. Blob has a getBytes() method.
> You can also concatenate blobs together using a new object called a
> BlobBuilder.
>
> 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 21:56:08 GMT

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