Posted By

arunpjohny on 11/01/09


Tagged

java inputoutput


Versions (?)

Convert a Java OutputStream to an InputStream


 / Published in: Java
 

URL: http://ostermiller.org/convert_java_outputstream_inputstream.html

  1. class1.putDataOnOutputStream(out);
  2. class2.processDataFromInputStream(
  3. new ByteArrayInputStream(out.toByteArray())
  4. );

Report this snippet  

You need to login to post a comment.