On 7/20/10 6:34 PM, Aryeh Gregor wrote:
On Tue, Jul 20, 2010 at 2:28 PM,
Platonides<Platonides(a)gmail.com> wrote:
This would be best, but unfortunately it's not yet usable for large
files -- it has to read the entire file into memory on the client.
[...]
But I don't think it actually addresses our use-case. We'd want the
ability to slice up a File object into Blobs and handle those
separately, and I don't see it in the specs. I'll ask. Anyway, I
don't think this is feasible just yet, sadly.
Here's a demo which implements an EXIF reader for JPEGs in Javascript,
which reads the file as a stream of bytes.
http://demos.hacks.mozilla.org/openweb/FileAPI/
So, as you can see, we do have a form of BLOB access.
So you're right that these newer Firefox File* APIs aren't what we want
for uploading extremely large images (>50MB or so). But I can easily see
using this to slice up anything smaller for chunk-oriented APIs.
--
Neil Kandalgaonkar |) <neilk(a)wikimedia.org>