Hi all
i have converted java file to c#. in java inputstream class read() method is there which reads byte by byte.
i have replaced it with readbyte() method. but i could n't get the result.

int i=memorystreamvar.readbyte()
giving -1.

but this in java is taking byte by byte.

one strange thing is i have data in the buffer..

could any one tell the solution for this problem.

Thanks
Request.