I never used JavaScript before. So please excuse my question if it's naive.
I am reading the following W3.org page. In there, they say that a binary file should be downloaded as a blob and in Asynchronous mode. I tried to find other documents but I couldn't file a clear explanation.
File or Blob reads should happen asynchronously on the main thread, with an optional synchronous API used within threaded web applications. An asynchronous API for reading files prevents blocking and UI "freezing" on a user agent’s main thread.
Questions
- Does it mean that a binary file can only be downloaded in Asynchronous mode and as a Blob in Edge and other modern browsers with JavaScript and thus Typescript?
- Why can't we download them in a text file like a JSON structure. Is there a size limit on the string size that it is transporting?
- Does that also apply to old browsers? Meaning on IE can we download the binary files as text files, like for instance a JSON data structure.