Problem: How do I store files in BigchainDB? (#2259)

Solution: Write a new root docs page about how to store files in BigchainDB.
This commit is contained in:
Troy McConaghy 2018-05-08 10:35:21 +02:00 committed by vrde
parent 9020348073
commit 722401ada9
2 changed files with 8 additions and 0 deletions

View File

@ -89,5 +89,6 @@ More About BigchainDB
assets
smart-contracts
transaction-concepts
store-files
permissions
Data Models <https://docs.bigchaindb.com/projects/server/en/latest/data-models/index.html>

View File

@ -0,0 +1,7 @@
# How to Store Files in BigchainDB
While it's possible to store a file in a BigchainDB network, we don't recommend doing that. It works best for storing, indexing and querying _structured data_, not files.
If you want decentralized file storage, check out Storj, Sia, Swarm or IPFS/Filecoin. You could store file URLs, hashes or other metadata in a BigchainDB network.
If you really must store a file in a BigchainDB network, then one way to do that is to convert it to a long Base64 string and then to store that string in one or more BigchainDB transactions, either in the `asset.data` of a CREATE transaction, or the `metadata` of any transaction.