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

Re: Updates to File API

From: Arun Ranganathan <arun@mozilla.com>
Date: Thu, 13 May 2010 08:04:13 -0700
Message-ID: <4BEC14ED.8030701@mozilla.com>
To: David Levin <levin@google.com>
CC: Web Applications Working Group WG <public-webapps@w3.org>, public-device-apis <public-device-apis@w3.org>
On 5/13/10 7:37 AM, David Levin wrote:
> On Thu, May 13, 2010 at 5:27 AM, Arun Ranganathan<arun@mozilla.com>  wrote:
>
>    
>> Greetings WebApps WG,
>>
>> I have updated the editor's draft of the File API to reflect changes that
>> have been in discussion.
>>
>> http://dev.w3.org/2006/webapi/FileAPI
>>
>> Notably:
>>
>> 1. Blobs now allow further binary data operations by exposing an
>> ArrayBuffer property that represents the Blob.
>>      
>
> Does this imply *sync* access to the blob data? "new
> DataArray(blob.blobBuffer).getInt8(0);"
>    

Sync. access to a Blob shouldn't be allowed; this is a *big* oversight 
on my part, and I think how the property is exposed should be considered 
better.
> Also, does it imply the ability to modify the blob contents? (If so, what
> does this mean when there is a file backing it?)
> "new DataArray(blob.blobBuffer).setInt8(0, 0);"
>    

This is part of the same oversight (evident in the editor's draft).

I think this aspect of things should be left to BlobBuilder or FileWriter.

-- A*

> Thanks, dave
>
>    
Received on Thursday, 13 May 2010 15:04:48 GMT

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