field-manual icon indicating copy to clipboard operation
field-manual copied to clipboard

How put image file in orbitdb key/value

Open maroodb opened this issue 6 years ago • 4 comments

is it possible to store image inside the orbitdb?

maroodb avatar May 04 '18 15:05 maroodb

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)

thiagodelgado111 avatar May 04 '18 22:05 thiagodelgado111

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

m00nwtchr avatar Jun 02 '18 11:06 m00nwtchr

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!

aphelionz avatar Apr 16 '19 19:04 aphelionz

Moving to the Field Manual repo

aphelionz avatar Sep 27 '19 16:09 aphelionz