Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ec9c76c

Browse files
authoredApr 9, 2020
Update article.md
1 parent c89ddc5 commit ec9c76c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎4-binary/04-file/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ The main methods:
6161

6262
The choice of `read*` method depends on which format we prefer, how we're going to use the data.
6363

64-
- `readAsArrayBuffer` - for binary files, to do low-level binary operations. For high-level operations, like slicing, `File` inherits from `Blob`, so we can call them directly, without reading.
65-
- `readAsText` - for text files, when we'd like to get a string.
64+
- `readAsArrayBuffer` -- for binary files, to do low-level binary operations. For high-level operations, like slicing, `File` inherits from `Blob`, so we can call them directly, without reading.
65+
- `readAsText` -- for text files, when we'd like to get a string.
6666
- `readAsDataURL` -- when we'd like to use this data in `src` for `img` or another tag. There's an alternative to reading a file for that, as discussed in chapter <info:blob>: `URL.createObjectURL(file)`.
6767

6868
As the reading proceeds, there are events:

0 commit comments

Comments
 (0)
Please sign in to comment.