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

Re: [FileAPI] readAsDataURL()

From: Jonas Sicking <jonas@sicking.cc>
Date: Thu, 17 Feb 2011 11:00:59 -0800
Message-ID: <AANLkTikQKHXf1eMckYAPXU3GKE3wE8YbQzAAR_BMh-ap@mail.gmail.com>
To: Arun Ranganathan <aranganathan@mozilla.com>
Cc: David Flanagan <david@davidflanagan.com>, public-webapps@w3.org
On Thu, Feb 17, 2011 at 9:46 AM, Arun Ranganathan
<aranganathan@mozilla.com> wrote:
> David,
>
>>
>> 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.

I think data-urls are allowed to have no content-type. Just like http
requests can return no content-type header.

/ Jonas
Received on Thursday, 17 February 2011 19:02:02 GMT

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