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

Re: File descriptors

From: Eric Uhrhane <ericu@google.com>
Date: Mon, 4 Oct 2010 16:15:41 -0700
Message-ID: <AANLkTikZH3dz1X+Z7hrmiF8yEkA4+8brk4B8GBcd0CCX@mail.gmail.com>
To: lmarcetic@foi.hr
Cc: public-webapps@w3.org
2010/10/4  <lmarcetic@foi.hr>:
> Hello again,
> thanks for your replies, let me address them one by one:
>
> Eric: Does not slicing a Blob require for it to be read into memory first
> with functions such as getTextAsBinary?

No.  If you use FileReader.readAsBinaryString, you're reading it into
memory, and what you've got is a string, not a blob.  Just use slice()
on the original blob, which need not be in memory [in fact I think
most large blobs will reside on disk in most implementations].

> Boris: Might be, will see how other things play out.
>
> Jonas: I keep getting undefined for "myFile.url".
>
> Thanks again.
> --Luka Marčetić
>
>
>
Received on Monday, 4 October 2010 23:16:27 GMT

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