Should have a way to convert File objects to data: urls This would allow you to display a preview image for an uploading attachment, or to store an image in the Database and display it later. Related to bug 25886. Something like: file.toDataURL(encoding) // or URI? http://en.wikipedia.org/wiki/Data_URI_scheme
While the FileUpload spec (http://dev.w3.org/2006/webapi/FileUpload/publish/FileUpload.html) does currently have support for this, I don't think we should implement it as it is currently spec and have express that concern the the editor. My concern is with synchronous access to the disk, so, an async api would be a solution.
Looks like http://dev.w3.org/2006/webapi/FileUpload/publish/FileAPI.xhtml is the new spec for this, which does make disk access async.
This bug has clearly been overtaken by events.