B
Boki
====================
while ( !done )
{
gui.repaint()
int count_jpg=0;
int bytesToRead = in.available();
if (bytesToRead > 0)
{
nbrOfBytesRead = in.read(byteBuffer);
if (nbrOfBytesRead!=-1)
{
for (count_jpg=0;count_jpg<nbrOfBytesRead;count_jpg++)
{
imageData[GUI.ggg+count_jpg]=byteBuffer[count_jpg];
}
GUI.ggg+=nbrOfBytesRead;
}
else
done=true;
}
}
=================
It seems that the program can't exit the while loop even my file already
send completely.
I see the nbrOfBytesRead is 22 ( not -1 ), and the screen didn't be refresh
again.
It seems that the program be blocked, am I right?
Is that a K750i's bug or my wrong implementation?
Thank you very much for your help/support.
Best regards,
Boki.
while ( !done )
{
gui.repaint()
int count_jpg=0;
int bytesToRead = in.available();
if (bytesToRead > 0)
{
nbrOfBytesRead = in.read(byteBuffer);
if (nbrOfBytesRead!=-1)
{
for (count_jpg=0;count_jpg<nbrOfBytesRead;count_jpg++)
{
imageData[GUI.ggg+count_jpg]=byteBuffer[count_jpg];
}
GUI.ggg+=nbrOfBytesRead;
}
else
done=true;
}
}
=================
It seems that the program can't exit the while loop even my file already
send completely.
I see the nbrOfBytesRead is 22 ( not -1 ), and the screen didn't be refresh
again.
It seems that the program be blocked, am I right?
Is that a K750i's bug or my wrong implementation?
Thank you very much for your help/support.
Best regards,
Boki.