FileReaderSync Class
Reads the content of a blob synchronously (https://w3c.github.io/FileAPI/#FileReaderSync), in the dedicated and shared workers.
public sealed class FileReaderSyncConstructors
| Name | Description |
|---|---|
| FileReaderSync() | https://w3c.github.io/FileAPI/#filereadersyncConstrctr |
FileReaderSync()
FileReaderSync.cshttps://w3c.github.io/FileAPI/#filereadersyncConstrctr
public FileReaderSync()Methods
| Name | Description |
|---|---|
| ReadAsArrayBuffer(Blob) | Returns a copy of the content of the blob (an ArrayBuffer in JavaScript, https://w3c.github.io/FileAPI/#readAsArrayBufferSyncSection). |
| ReadAsBinaryString(Blob) | Returns the content of the blob as a binary string: each byte is a code unit (https://w3c.github.io/FileAPI/#readAsBinaryStringSyncSection). |
| ReadAsDataUrl(Blob) | Returns the content of the blob as a data: URL whose body is base64-encoded (https://w3c.github.io/FileAPI/#readAsDataURLSync-section). |
| ReadAsText(Blob, string?) | Returns the content of the blob as text (https://w3c.github.io/FileAPI/#readAsTextSync), decoded with the byte order mark, else the encoding label, else the charset of the type of the blob, else UTF-8. |
ReadAsArrayBuffer(Blob)
FileReaderSync.csReturns a copy of the content of the blob (an ArrayBuffer in JavaScript, https://w3c.github.io/FileAPI/#readAsArrayBufferSyncSection).
ReadAsBinaryString(Blob)
FileReaderSync.csReturns the content of the blob as a binary string: each byte is a code unit (https://w3c.github.io/FileAPI/#readAsBinaryStringSyncSection).
ReadAsDataUrl(Blob)
FileReaderSync.csReturns the content of the blob as a data: URL whose body is base64-encoded (https://w3c.github.io/FileAPI/#readAsDataURLSync-section).
ReadAsText(Blob, string?)
FileReaderSync.csReturns the content of the blob as text (https://w3c.github.io/FileAPI/#readAsTextSync), decoded with the byte order mark, else the encoding label, else the charset of the type of the blob, else UTF-8.