ligi / IPFSDroid

Android App for the InterPlanetary File System(IPFS)
GNU General Public License v3.0
304 stars 73 forks source link

IPFS node vs gateway functionality #29

Open cameronvoell opened 6 years ago

cameronvoell commented 6 years ago

It seems we have the ability to utilize the local IPFS node for adding content to IPFS, and doing an "IPFS cat" to read out a file from IPFS. However, in order to access an image file from IPFS, this app and its browser UI utilizes the ipfs.io IPFS gateway in order to get content.

Is it possible to execute an IPFS get command the same way an IPFS cat command is now possible? (perhaps it returns byte data or a File object?).

It would be nice to be able to fetch files without depending on a remote IPFS gateway.

Let me know if this questions should be in the IPFS Kotlin api repo.

cameronvoell commented 6 years ago

hmm maybe that is what this PR essentially accomplishes...

https://github.com/ligi/ipfs-api-kotlin/pull/4