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 [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>