field-manual
field-manual copied to clipboard
How put image file in orbitdb key/value
is it possible to store image inside the orbitdb?
Can you put the image on IPFS and store a hash? Or maybe base64url encoded data? (https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL)
I think that the hash approach is better because then you will be able to use all of the benefits IPFS gives you (clients storing your data to boost the download speed of others and so on). + then the size of the database will be smaller
We detail this a lot in Chapter 2 of the Tutorial in the new OrbitDB Field Manual. Feel free to open issues or PRs there if you have more questions!
Moving to the Field Manual repo