【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
我想在Android上将JPEG图像转换成字节数组... 代码如下:
if (PhotoScreen.st_bitPicture != null) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); boolean b = PhotoScreen.st_bitPicture.compress(CompressFormat.JPEG, 100, bos); Log.w("test2", "BOOLEAN BOOLEAN BOOLEAN BOOLEAN :"+b); m_base64EncodedImage = Base64.encodeToString(bos.toByteArray(), Base64.DEFAULT); }但它是压缩图像。不压缩图像的情况下我该怎么办?