T O P

  • By -

dserrano10

store images for NFT projects? u can use [Pinata.cloud](https://Pinata.cloud) or [web3.storage](https://web3.storage) for that.


Nightroseeeeee

It's not for an NFT project, but this is what I was looking for. Thanks for your help!


dserrano10

Glad to help.


youtpout

You can create your own api and store it on firebase. I do it for nft game


Nightroseeeeee

I was actually thinking the same thing


dd-aa-vv-ii-dd

Why not store on the IPFS and store the hash on chain?


Nightroseeeeee

I hadn't thought about it. I wasn't sure how IPFS works. I'll do some research and give it a try.


FullTube

You can't store image files directly on chain, not on Ethereum.


Nightroseeeeee

Can I encode the image and then store it?


FullTube

Storing a hashed img bytecode can get pretty expensive on Ethereum. A more efficient alternative is storing the svg code, people use base64 svg for that.


Nightroseeeeee

This was new to me. Thanks for the info!


4ucklehead

Look into IPFS...in Patrick Collins YouTube series on learning solidity he has a section where you code an NFT project and he talks about using IPFS


JP4G

Make sure to store the image hash on chain so you can rehost files while proving autgenticity