不要用reader和writer,reader和writer是用来读写字符串的,中间有编码和解码的过程。
直接用InputStream和OutputStream即可