How copy bufferedreader into bufferedwriter for pdf files in android

946 Views Asked by At

How can I copy BufferedReader into BufferedWriter for pdf files in android?

The problem is I want to copy a file with gms library (I can't download with gms, just copy) so if I read every row with BufferedReader how can I copy with BufferedWriter and save pdf files? Every idea is appreciated Thank's

1

There are 1 best solutions below

2
On

You can't. Readers and Writers are for character data. PDF files are binary. You should be using InputStreams and OutputStreams.