getting file out of fetch response
For an endpoint that returns a file via fetch, the file can be accessed by:
|
|
Then it can be used as src
for <img>
<iframe>
etc using
createObjectURL.
|
|
Reading content from a Blob can also be done.
Search
For an endpoint that returns a file via fetch, the file can be accessed by:
|
|
Then it can be used as src
for <img>
<iframe>
etc using
createObjectURL.
|
|
Reading content from a Blob can also be done.