SyntaxFix
Write A Post
Hire A Developer
Questions
Use a ByteArrayOutputStream. Here is the process:
ByteArrayOutputStream
InputStream
OutputStream
byte[]
toByteArray()