欢迎投稿

今日深度:

android sqlite中存放字节数组的方法,androidsqlite

android sqlite中存放字节数组的方法,androidsqlite





Android sqlite 数据类型  关于字节数组存放:


1、将字节数组转为string类型存放

    Base64.encodeToString(rawData, Base64.DEFAULT) byte[]转为string

    Base64.decode(printData.getBytes(), Base64.DEFAULT) string转为byte[]

2、BLOB - The value is a blob of data, stored exactly as it was input.(BLOB数据不做任何转换,以输入形式存储。)

www.htsjk.Com true http://www.htsjk.com/SQLite/34377.html NewsArticle android sqlite中存放字节数组的方法,androidsqlite Android sqlite 数据类型  关于字节数组存放: 1、将字节数组转为string类型存放     Base64.encodeToString(rawData, Base64.DEFAULT) byte[] 转为string   ...
相关文章
    暂无相关文章
评论暂时关闭