Re: File descriptors

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 UTC