How to store large file in Hyperledger Fabric using Hyperledger Composer

吃可爱长大的小学妹 提交于 2019-12-01 12:06:33

问题


Hi I created an asset in Composer model file.

asset Car identifiedby assetId{
o String assetId
o String data
}

when I am trying to put large file above 30kb, it is throwing error as data too large. So, what is the limit of data that can be stored in a variable?

Is this the wrong way of storing files in blockchain(Hyperledger Fabric using Composer)?

there are questions available for storing file in hyperledger fabric/composer. However, there is no question for storing large file.


回答1:


see these answers and guidelines (on what to store etc) on these Stack Overflow resources: is there any size limit for pdf in hyperledger fabric? and also this -> what is the best way of image storage on hyperledger composer? - in the comment section it has a link to a Github resource for alternatives such as IPFS



来源:https://stackoverflow.com/questions/51743406/how-to-store-large-file-in-hyperledger-fabric-using-hyperledger-composer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!