url = new URL(szPicUrl);
InputStream bis = url.openStream();
File oFile = new File(szIamgeFile);
if(!oFile.createNewFile()){
    return -2;
}
FileOutputStream outfile = new FileOutputStream(oFile);
byte[] b = new byte[1024];
int read;
while((read=bis.read(b,0,1024)) > 0 ){
     outfile.write(b, 0, read); //outfile.write(b, 0, 1024);
}
outfile.close();此代码把远程图片写入本地时,图像会出现掉色问题,请有解决此问题的吗?