Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ByteArrayOutputStream result = new ByteArrayOutputStream();
- byte[] buffer = new byte[1024];
- int length;
- while ((length = inputStream.read(buffer)) != -1) {
- result.write(buffer, 0, length);
- }
- return result.toString("UTF-8");
Add Comment
Please, Sign In to add comment