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

Re: File descriptors

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 04 Oct 2010 11:36:36 -0400
Message-ID: <4CA9F484.1000409@mit.edu>
To: lmarcetic@foi.hr
CC: public-webapps@w3.org
On 10/4/10 7:09 AM, lmarcetic@foi.hr wrote:
>   * 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.

http://dev.w3.org/2006/webapi/FileAPI/#url does what you want, right? 
You can experiment with this in Firefox 4 following the documentation at 
https://developer.mozilla.org/en/DOM/window.createBlobURL

-Boris
Received on Tuesday, 5 October 2010 02:15:41 GMT

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