I am using this js-ipfs/FILES.md at 3d68a4493d7dcc550a4c449490f5c950d00c27fc · ipfs/js-ipfs · GitHub with
Content is an Uint8Array. How do I get a file from it ? the idea is that sometimes hash of ipfs could have
json file, sometimes
png and so on. How is it possible to get the actual file ? I know that i can directly use
fetch(https://gateway.com/ipfs/cidHere) but, this is a little bit worse, because gateways are usually slow… So I was thinking that
ipfs.get was really way faster, but the content it returns is just uint8array and can’t really get the file out of it.
What would you suggest ?