W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: [FileAPI] readAsDataURL()

From: Arun Ranganathan <aranganathan@mozilla.com>
Date: Thu, 17 Feb 2011 09:46:39 -0800 (PST)
To: David Flanagan <david@davidflanagan.com>
Cc: public-webapps@w3.org
Message-ID: <548410955.373725.1297964799006.JavaMail.root@cm-mail03.mozilla.org>

> Arun,
> I'm assuming that you mean for the resulting data:// URL to have a
> mime
> type in it, right? But the spec just says to take the "blob's data
> content" and doesn't say anything about using the type of the blob
> when
> creating the URL.

Yes, you're absolutely right, I understand you now!  The steps should specify use of the type property on Blobs.  In fact, sometimes the type may not be available on Blobs.  In this case the specification should go to the error steps, since a valid data: URL cannot be generated.

-- A*
Received on Thursday, 17 February 2011 17:47:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:16 UTC