unable 2 read bytes array of images
I have made a client application which will
receive an image from server
the mobile app (clent) is reveiving bytes array in emulator
but unable 2 receive it in real application...
message = new byte[2073];//string 2 read pic;
for(i=0;i<2073;i++)
{
//read pic array byte by byte
x=is.read();//(is is an input stream)
message= (byte)x;
}
// also tried this
//is.read(message)
works fine in emulator but not in real appication in sony erricson k310i
[546 byte] By [
maaz01a] at [2007-11-27 8:22:52]

# 3
sorry actually code was.....
for reading byte by byte...............
message = new byte[2073]; //string 2 read pic;
for(i=0;i<2073;i++)
{
//read pic array byte by byte
x=is.read(); //(is is an input stream)
message= (byte)x;
}
//for reading whole array message
// also tried this
is.read(message)
and i think there shall be no problem in converting an int into byte
# 4
sorry actually code was.....
for reading byte by byte...............
message = new byte[2073]; //string 2 read pic;
for(i=0;i<2073;i++)
{
//read pic array byte by byte
x=is.read(); //(is is an input stream)
message= (byte)x;
}
//for reading whole array message
// also tried this
is.read(message)
and i think there shall be no problem in converting an int into byte
# 5
sorry actually code was.....
for reading byte by byte...............
message = new byte[2073]; //string 2 read pic;
for(a=0;a<2073;a++)
{
//read pic array byte by byte
x=is.read(); //(is is an input stream)
message[a]= (byte)x; //problem in last post i[] //converting it into italic
}
//for reading whole array message
// also tried this
is.read(message)
and i think there shall be no problem in converting an int into byte