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

Not making partial result available during FileReader.readAsText()?

From: Jian Li <jianli@chromium.org>
Date: Thu, 8 Apr 2010 20:31:36 -0700
Message-ID: <o2qa95818c31004082031j1ae53384x66a7cf852b0e27b8@mail.gmail.com>
To: Web Applications Working Group WG <public-webapps@w3.org>
For FileReader.readAsText, the spec seems to allow partial file data being
decoded and saved in the result attribute when progress event is fired:

Make progress notifications. As the bytes from the fileBlob argument are
read, user agents SHOULD ensure that on getting, the result attribute
returns partial file data representing the number of bytes currently loaded
(as a fraction of the total) [ProgressEvents], decoded in memory according
to the encoding determination.

The partial file data read so far might not get decoded completely. Could we
choose not to decode the partial result till we retrieve all the data, just
like what FileReader.readAsDataURL does?
Received on Friday, 9 April 2010 03:32:11 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:24 UTC