Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Blockchain by (4.1k points)

I'm ramping up on learning Solidity, and have some ideas. At the moment I am curious if files/images can be put on the blockchain. I'm thinking an alternative would be some hybrid approach where some stuff is on the blockchain, and some stuff is in a more traditional file storage and uses address references to grab it. One issue I foresee is gas price of file uploads.

1 Answer

0 votes
by (14.4k points)

Yes, it is possible to store images in the Ethereum blockchain. However, it is advised that you should not do it. 

This is because storing images on the Ethereum blockchain is extremely expensive. 

The cost of data storage is 640k gas per Kb of data, and the current gas price is approximately 15 Gwei or 0.000000015 ETH. And 1 ETH equals $200 presently. 

So, for uploading 1 Kb, you will be spending $2

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94.1k users

Browse Categories