files/en-us/web/api/filereadersync/index.md
{{APIRef("File API")}} {{AvailableInWorkers("worker_except_service")}}
The FileReaderSync interface allows to read {{DOMxRef("File")}} or {{DOMxRef("Blob")}} objects synchronously. This interface is only available in workers as it enables synchronous I/O that could potentially block.
FileReaderSync object.This interface does not have any properties.
readAsArrayBuffer() instead.encoding parameter indicates the encoding to be used (e.g., iso-8859-1 or UTF-8). If not present, the method will apply a detection algorithm for it.{{Specifications}}
{{Compat}}