In Java…
I have data stored in a BufferedReader. (I got it as a response to an HTTP post request.)
How do I write this (binary) data to a file?
I know how to write Strings to files, but how do I take the data in the BufferedReader and put it into a file.
Thanks in advance!
Do not use a Reader to get bytes. Reader is used for reading character data, not binary data. Use the InputStream directly.