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[]
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。