On 7/20/10 6:34 PM, Aryeh Gregor wrote: > On Tue, Jul 20, 2010 at 2:28 PM, Platonides<[email protected]> wrote: >> Or a modern browser using FileReader. >> >> http://hacks.mozilla.org/2010/06/html5-adoption-stories-box-net-and-html5-drag-and-drop/ > > 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 |) <[email protected]> _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
