private Strin我现在是利用webservice中的协议进行传输的,将客户端录制的音频传输到服务器端 g DecodeToSting(String PictureName) { // 将图片转化成Bitmap String imageFilePath = PHOTO_PATH + "/" + PictureName; BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 10; // 图片缩小到1/100 Bitmap bm = BitmapFactory.decodeFile(imageFilePath, options); // 将Bitmap转化成String String string = null; ByteArrayOutputStream bStream = new ByteArrayOutputStream(); bm.compress(CompressFormat.JPEG, 100, bStream); byte[] bytes = bStream.toByteArray(); string = Base64.encodeToString(bytes, Base64.DEFAULT); return string; }图片我是这么转换的 其实是将二进制流转化为了字符串在传