拷贝图片只能用字节流或者字节流缓冲区吗?
我用 BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputSteam("java.jpg")));
并且输出流 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("haha.jpg")));
发现拷贝图片损失了精度,是因为BufferedReader在用readLine()方法读取的时候损失了精度吗?
还有,如果BufferedWriter用newLine()方法,是不是也会造成拷贝图片失败呢? |
|