我正在尝试通过BitmapFactory.decodeInputStream(Input Stream)
方法接收通过套接字作为字节数组发送的多个图像但我收到错误消息:Decoder returned false.
这是我的代码:
while(true)
{
this.image=BitmapFactory.decodeStream(in);
imgView.setImageBitmap(image);
if(!notreceiving)
{
pBar.setVisibility(View.GONE);
loadingText.setVisibility(View.GONE);
notreceiving=true;
}
}