Hi,

I connected to a product using JSch.

I am trying to read the data, that has been written out by a product (solaris machine) onto its output stream using the input stream.

I am getting all the data, however I get a whole bunch of garbage characters in between the data.

I am collecting the data in a byte array directly from the input stream.

Can anyone tell me why I might be facing this problem ?

I have tried using Reader and providing different charset values, but it is not working.

Here's the output with garbage (unhighlighted part)

Last login: Wed Dec 23 22:16:34 2009 from 148.147.152.191

Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
TERM is: vt100


        H        H        H        H        H        H        H        H        H
7tsdexpert:/export/home/pshindikar $

Regards,

Prasad Shindikar