本文介绍了如何使用Hyperledger Composer在Hyperledger Fabric中存储大文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Composer模型文件中创建了资产.

Hi I created an asset in Composer model file.

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

当我尝试将大于30kb的大文件放入时,由于数据太大而引发错误.那么,可以存储在变量中的数据限制是什么?

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?

这是在区块链(使用Composer的Hyperledger Fabric)中存储文件的错误方法吗?

对于将文件存储在超级账本结构/组合器中,存在一些问题.但是,存储大文件毫无疑问.

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

推荐答案

请参阅以下有关Stack Overflow资源的答案和准则(有关存储内容等):-在评论部分,它具有指向Github资源的链接,用于IPFS等替代方案

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

这篇关于如何使用Hyperledger Composer在Hyperledger Fabric中存储大文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 00:04