Skip to content Skip to sidebar Skip to footer

CopyInputStreamToOutputStream(in, System.out)

I have read through the Security with HTTPS and SSL documentation from Android. I see that it keeps using copyInputStreamToOutputStream(in, System.out);. That gives me error: cann

Solution 1:

Easy way to write contents of a Java InputStream to an OutputStream

org.apache.commons.io.IOUtils from Apache has a method called copy(InputStream,OutputStream) which does exactly what you're looking for.

IOUtils.copy(in,out);


Post a Comment for "CopyInputStreamToOutputStream(in, System.out)"