Re: File API Feedback

On 6/19/09 6:00 AM, timeless wrote:
> On Fri, Jun 19, 2009 at 4:13 AM, Arun Ranganathan<arun@mozilla.com>  wrote:
>> Hixie, I think a Base64 representation of the file resource may be
>> sufficient, particularly for the image use case (which is how it is used
>> already).  Can you flesh out why the new schema is a good idea?
>
> so. I have folders with 100-1000mb of pictures in them. If I decide
> that I want to upload them all (Picasa style), i'd expect it would
> take a very long time to convert each file name into a base64 url.
>

File API should probably have some way to get only parts of the file. 
getAsXXX(long long offset, long long length). Then uploading huge files
could be split and decoding video (or something like that) in JS might 
become possible.
This is something we need for XHR too
https://bugzilla.mozilla.org/show_bug.cgi?id=496533


-Olli

Received on Tuesday, 30 June 2009 09:03:28 UTC