We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70b39d4 commit d6879d2Copy full SHA for d6879d2
README.md
@@ -64,16 +64,16 @@ Then run commands like:
64
ipfs.refs.local();
65
```
66
67
-To add a file use:
+To add a file use (the add method returns a list of merklenodes, in this case there is only one element):
68
```Java
69
NamedStreamable.FileWrapper file = new NamedStreamable.FileWrapper(new File("hello.txt"));
70
-MerkleNode addResult = ipfs.add(file);
+MerkleNode addResult = ipfs.add(file).get(0);
71
72
73
To add a byte[] use:
74
75
NamedStreamable.ByteArrayWrapper file = new NamedStreamable.ByteArrayWrapper("hello.txt", "G'day world! IPFS rocks!".getBytes());
76
77
78
79
To get a file use:
0 commit comments