Meziantou.Framework.WebPlatform.Dom.FileApi namespace

Classes

NameDescription
BlobAn immutable sequence of bytes with a type (https://w3c.github.io/FileAPI/#blob-section). The parts of the constructor are strings (encoded as UTF-8), blobs, byte arrays and ReadOnlyMemory<T> of bytes. A blob can be referenced by a blob: URL (Url.CreateObjectUrl). stream() and textStream() are defined by the WebIDL bindings, with the streams implemented in JavaScript (docs/scripting.md#streams).
BlobPropertyBaghttps://w3c.github.io/FileAPI/#dfn-BlobPropertyBag
Filehttps://w3c.github.io/FileAPI/#file-section
FileListhttps://w3c.github.io/FileAPI/#filelist-section
FilePropertyBaghttps://w3c.github.io/FileAPI/#dfn-FilePropertyBag
FileReaderReads the content of a Blob asynchronously (https://w3c.github.io/FileAPI/#APIASynch). The events (loadstart, progress, load or error, loadend, abort) are fired by the tasks of the event loop of the relevant global object of the reader (the window of the current global object when it is created); a reader created without current global object (e.g. from .NET without script engine) reads the blob and fires the events synchronously.
FileReaderSyncReads the content of a blob synchronously (https://w3c.github.io/FileAPI/#FileReaderSync), in the dedicated and shared workers.

Structs

NameDescription
FileReaderResultThe result of a FileReader: a string or a byte array (an ArrayBuffer in JavaScript).