Bug 41567 - Implement FileReaderSync
Summary: Implement FileReaderSync
Status: RESOLVED DUPLICATE of bug 44657
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Enhancement
Assignee: Nobody
URL: http://rapilabs.com/test_sync.html
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-03 03:27 PDT by David Sanders
Modified: 2011-06-14 10:57 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Sanders 2010-07-03 03:27:45 PDT
FileReaderSync is the synchronous counterpart of FileReader as defined in the HTML5 specification: http://www.w3.org/TR/FileAPI/#FileReaderSync.

Reading files synchronously would typically be done in a web worker so as not to freeze the application.  This is especially useful with GWT applications to create a java.io.Reader implementation that reads blobs using the File API.  This means that you can plug a blob reader into your favourite library that requires a Reader to run, eg: opencsv.  This is currently only possible using Gears' Blob.getBytes() which is also synchronous.

An example page is setup at http://rapilabs.com/test_sync.html
Comment 1 Jian Li 2011-06-14 10:57:21 PDT

*** This bug has been marked as a duplicate of bug 44657 ***