You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Felipe Schnack <fe...@ritterdosreis.br> on 2003/01/05 21:47:14 UTC

OFF-TOPIC: input/outputstreams

  Ok, I feel really stupid doing this, must be a better way...
  I'm using an API that at some point returns me an ByteArrayOutputStream. I
want to pass this data to another method that receives an InputStream. Whan
I'm doing right now is the following:
  ByteArrayOutputStream baos = <class1>.<method1>();
  <class2>.<method2>(new ByteArrayInputStream(baos.toString().getBytes()));
  Please, there is another way, isn't it? :-))

Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
felipes@ritterdosreis.br
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>