Having a InputStream and a OutputStream.
I want to connect them.
What I want to do is reading data from InputStream.
And then output the same data by using OutputStream.
This is my code.
byte[] b = new byte[8192];
while((len = in.read(b, 0, 8192)) > 0){
out.write(b, 0, len);
}
Is there any method to connect them?
Or is there any way to input and output data without buffer?