List of utility methods to do OutputStream Write Byte Array
void | writeBytesToStream(byte[] bytes, OutputStream outputStream) Writes given bytes array to given outputStream. BufferedOutputStream bos = new BufferedOutputStream(outputStream); try { bos.write(bytes); } finally { bos.close(); |
void | writeBytesToStream(byte[] data, OutputStream os) Write a byte array into an output stream. ByteArrayInputStream bais = new ByteArrayInputStream(data);
copyStream(bais, os);
bais.close();
|