转载文章请注明出处:http://write.blog.csdn.net/postedit/13092669
android 通过UrlConnection 或者HttpConnection 访问网络读取图片当下读取量过多或者过大时,就会出现部分的乱码。附下图:
关键处是:public boolean compress (Bitmap.CompressFormat format,
int quality, OutputStream stream)方法。
android api 给的讲解是:
Write
a compressed version of the bitmap to the specified outputstream. If this returns true, the bitmap can be reconstructed by passing a corresponding inputstream to BitmapFa......
阅读全文