View Single Post
Old 11-20-2011, 05:54 AM   #1 (permalink)
rammohanrg
New Member
 
Join Date: Nov 2011
Model: xxx
PIN: N/A
Carrier: XXX
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question How to Read from a socket ??

Please Login to Remove!

What is the way to read from a socket in Blackberry?

I have used the following code to read but it does not reads .

for(int i=0;i<length;++i)
{
input[i] = ((char)in.read());

System.out.println("OUPUT : " +input[i]);

}

It gets stalled.

I tried to use InpuStream.read() but it too does'nt work.

Any Suggestions....
Offline   Reply With Quote