You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
`multihash` is a [multihash][] which can be passed as
161
+
162
+
- Buffer, the raw Buffer of the multihash
163
+
- String, the base58 encoded version of the multihash
164
+
165
+
`callback` must follow `function (err, stream) {}` signature, where `err` is an error if the operation was not successful and `stream` is a readable stream of the file.
166
+
167
+
If no `callback` is passed, a promise is returned.
168
+
169
+
```js
170
+
ipfs.files.cat(multihash, function (err, file) {
171
+
// file will be a stream containing the data of the file requested
0 commit comments