I\'m getting some documents from the web and many of them are binary files (executables, PDF, etc.). In Java, what is the correct type to hold the binary data until save it in d
Use a byte[] or a ByteBuffer if you need simplified byte-level manipulation.
Strictly speaking you could use a string but there are many pitfalls related to character encoding, so you shouldn't use strings without a really good reason to do so.