W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: Is BlobBuilder needed?

From: Kyle Huey <me@kylehuey.com>
Date: Tue, 15 Nov 2011 11:04:06 -0500
Message-ID: <CAP045Ao0zXYvO9aj8kK2x0sTU3RuVocYQwWT+RgNDN_v7rzdKQ@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
Cc: Jonas Sicking <jonas@sicking.cc>, Webapps WG <public-webapps@w3.org>, Eric Uhrhane <ericu@google.com>
On Tue, Nov 15, 2011 at 10:55 AM, Glenn Maynard <glenn@zewt.org> wrote:

> On Mon, Oct 24, 2011 at 6:52 PM, Jonas Sicking <jonas@sicking.cc> wrote:
>
>> It was pointed out to me on twitter that BlobBuilder can be replaced
>> with simply making Blob constructable. I.e. the following code:
>>
>
> I noticed this at
> https://developer.mozilla.org/en/Firefox_8_for_developers:
>
> "BlobBuilder now has a getFile() method that returns the content of the
> blob as a file."
>
> This suggests a File constructor as well, eg. b = new File([foo, bar], {
> name: "file.jpg" });.
>
> (Of course, the only difference is that the created object has the File
> interface, with an attached filename.  It would make no difference to how
> the data is stored, which isn't actually tied to the interface.)
>

I think we decided that we're going to remove getFile.  See
https://bugzilla.mozilla.org/show_bug.cgi?id=669437#c7 and later.

- Kyle
Received on Tuesday, 15 November 2011 16:04:59 GMT

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