ipfs-shipyard / java-ipfs-http-client

A Java implementation of the HTTP IPFS API
MIT License
538 stars 243 forks source link

After uploading the file, an empty array is returned, and no address is returned #177

Closed wenming5112 closed 3 years ago

wenming5112 commented 3 years ago
NamedStreamable.FileWrapper saveFile = new NamedStreamable.FileWrapper(new File("E:\\guaranty\\233ade8f1076f5b3f8a4a02def39d1ef.png"));
        for (MerkleNode result : ipfs.add(saveFile)) {
            System.out.println(result.toJSONString());
        }

return {"Links":[]}