android sqlite中存放字节数组的方法
两种方法sqlite实现字节数组存放:
1、BLOB - The value is a blob of data, stored exactly as it was input.(BLOB数据不做任何转换,以输入形式存储。)
2、将字节数组转为string类型存放
Base64.encodeToString(rawData,
Base64.DEFAULT)
byte[]转为string
Base64.decode(printData.getBytes(),
Base64.DEFAULT) string转为byte[]
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
- 上一篇:没有了
- 下一篇:没有了
