지난번에도 질문을 올렸습니다...

 

 
 
원인을 알았습니다.
byte[]에서 bitmap변환이 안됩니다.
 
우선 ksoap2를 통해 string을 받아오고 이 string을
 
byte[] b = EncodingUtils
     .getBytes(resultString.toString(), "BASE64");
 
위와 같이 하여 byte[]로 변환했습니다.
 
그후 byte[]를 bitmap으로 변환을 하는데..
 
 ByteArrayInputStream in = new ByteArrayInputStream(b, 0, b.length);
   // byte[]을 비트맵으로 변환
   bmp = BitmapFactory.decodeStream(in);
ByteArrayInputStream in = null;
   in.read(b);     
   // byte[]을 비트맵으로 변환
   bmp = BitmapFactory.decodeStream(in);
ByteArrayInputStream in = null;
   in.read(b);     
   // byte[]을 비트맵으로 변환
   bmp = BitmapFactory.decodeByteArray(b, 0, b.length);

위의 3가지 방법으로 해봣습니다...
3가지 방법 전부 bmp에는 null이 들어갑니다...
왜 이렇게 되는걸까요?? 해결법좀 알려주세요..ㅠ