如何将PDF存储在Cassandra中?
我想将一些PDF文件保存到Cassandra。我正在Python的Cassandra工作。一些答案表明,我使用斑点做。但是我不太确定该怎么做。 BLOB的DataStax文档仅谈论INT和Float等数据类型。我该如何对文件,特别是PDF进行相同的操作?
I want to save some pdf files to Cassandra. I'm working on Cassandra in Python. Some answers suggested that I do it using BLOBs. But I'm not quite sure how to do it. The Datastax Documentation for BLOB talks only about data types like int and float. How do I do the same for files, specifically PDFs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题已经在
虽然可以将二进制文件存储在CQL
blob
列中,但这样做不是一个好主意。有关详细信息,请参阅重复问题中的建议。干杯!This question has already been asked and answered in Is it possible to store PDF files in a CQL blob type in Cassandra?.
While it is possible to store binary files in a CQL
blob
column, it's not a good idea to do so. For details, see my recommendation in the duplicate question. Cheers!