前一段日子,我在做rsa加密和通过http get方式获取验证码图片通过BitmapFactory创建bitmap 出现了一系列的问题. 通过一系列的调试,发现有些问题原来是在进行String 与Byte[]之间转换造成的. 哎,android新手伤不起啊..... java 默认String在内存中的编码是ucs-2编码.当你要把byte[]转换成String时,这里就涉及到了 编码转换的问题,假如你不指定byte[]里面的编码,那可能在转换后会有问题.假如你没有指定 byte[]里面所用到的…