问题标签 [android-orm]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
33 浏览

ormlite - 如何在 ORMLite Android 中存储 byte[]?

这可能是一个重复的问题,但以前的答案都不适合我。我正在尝试将 byte[] 存储在 ormlite 中,但出现以下错误。

我已经在 java 类和配置文件中添加了字段类型作为 dataType=DataType.BYTE_ARRAY 。这是我的Java类。

这是我的 ormlite_config.txt 文件内容。

dataPersister按照这个答案中的建议使用了。除了 dataPersister,我还在我的配置文件中尝试了 dataType。我无法找到解决方案。我的代码有什么问题?