如何将PDF存储在Cassandra中?

发布于 2025-02-11 08:00:19 字数 134 浏览 3 评论 0原文

我想将一些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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

做个少女永远怀春 2025-02-18 08:00:19

这个问题已经在

虽然可以将二进制文件存储在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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文