rt,转换的函数如下:
public byte[] getBitmapByte(Bitmap bitmap){
ByteArrayOutputStream out = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out); return out.toByteArray();
}
然后输出的二进制文件用binary not null形式存入数据库,
后来经过debug看到输入的byteArray和从数据库读出的byteArray不一样,这是什么情况????
public byte[] getBitmapByte(Bitmap bitmap){
ByteArrayOutputStream out = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out); return out.toByteArray();
}
然后输出的二进制文件用binary not null形式存入数据库,
后来经过debug看到输入的byteArray和从数据库读出的byteArray不一样,这是什么情况????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货