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

Re: File descriptors

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 4 Oct 2010 14:18:52 -0700
Message-ID: <AANLkTinrvp5GBpnzrsRmuG4_a0_smQhU7GKfUDd6hcFb@mail.gmail.com>
To: lmarcetic@foi.hr
Cc: public-webapps@w3.org
2010/10/4  <lmarcetic@foi.hr>:
> Dear people of W3C,
> My name is Luka Marčetić, I am a student at Faculty of Organization and
> Informatics in Croatia.
> This, I guess, would qualify as a feature request. Your FileAPI draft is a
> step in the direction I want to take, but it's not quite there yet. I need
> something to allow me to:
>
>  * read local files,
>  * show them in web documents, and
>  * manipulate them
>
> FileAPI does the first thing, and partly the third one. The problem is
> that it, as I understand it, loads the complete file into memory
> (readAsBinaryString) which is inconvenient for big files, such as video.

Using the Web API spec you can do things like:

myVideoElement.src = myFile.url;

or rather, once planned changes are made to the draft:

myVideoElement.src = window.createBlobURL(myFile);

That won't load any more into memory than is needed.

/ Jonas
Received on Monday, 4 October 2010 21:19:46 GMT

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