He subido una cadena completa de datos en IPFS: - la URL es: - https://bafybeih3u62l664yz4ffpgrjci6ytl64rbivsgpovv6csty3j6kbx6natm.ipfs.infura-ipfs.io/ Puse esta URL en el navegador y la muestra perfectamente, ¿hay alguna manera? esta URL usando JavaScript y muéstrala a la interfaz como un atributo de fuente de imagen
Puedes hacerlo
fetch('https://bafybeih3u62l664yz4ffpgrjci6ytl64rbivsgpovv6csty3j6kbx6natm.ipfs.infura-ipfs.io/') .then(response => response.text()) .then(data =>{ document.getElementById('yourimg').src = data; });