A development team is creating a decentralized social media platform where users can post messages and upload images. To maintain decentralization and avoid high on-chain storage costs, where is the most appropriate place to store the user-uploaded images?
-
A
Directly within the smart contract's state variables.
-
B
On a centralized server managed by the development team, with image hashes stored on-chain.
-
C
In a decentralized storage network like IPFS, with the content identifier (CID) stored on-chain.
-
D
As event logs emitted by the smart contract.