Yes, "stucked" was not the right term, the workaround is to slice the
blob once the file has been readed and to use workers so the UA is not
blocked by the operation, both are indeed not great at all, taking a lot
of time and complicating the implementation while it could be easily
implemented on a streaming style, I will watch the API handling
incremental data but I still don't get the use of the partial blob as it
is in the spec.
Regards
Aymeric
Le 22/08/2013 01:21, Jonas Sicking a écrit :
On Wed, Aug 21, 2013 at 3:56 PM, Aymeric Vitte <[email protected]> wrote:
Combination of the File API, indexedDB, etc (and future WebCrypto) is really
great, I did not expect to be stucked by something that looks trivial:
calculate the hash of a file while you are reading it.
Until we add API for incremental data, what you can do is to use
Blob.slice() to read the blob in small parts. Not great, but at least
it'll get you unstuck.
/ Jonas
--
jCore
Email : [email protected]
iAnonym : http://www.ianonym.com
node-Tor : https://www.github.com/Ayms/node-Tor
GitHub : https://www.github.com/Ayms
Web : www.jcore.fr
Extract Widget Mobile : www.extractwidget.com
BlimpMe! : www.blimpme.com