Bug 41567

Summary: Implement FileReaderSync
Product: WebKit Reporter: David Sanders <shang.xiao.sanders>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Enhancement CC: jianli, shang.xiao.sanders
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.6   
URL: http://rapilabs.com/test_sync.html

David Sanders
Reported 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
Attachments
Jian Li
Comment 1 2011-06-14 10:57:21 PDT
*** This bug has been marked as a duplicate of bug 44657 ***
Note You need to log in before you can comment on or make changes to this bug.