hi guys,
need help on this issue urgently. I have been on this problem for several days and does not seem to solve it.
I am trying to send an image in descriptor over to laptop. I have converted the image to descriptor already. however the problem lies in the sending.

Snippets of my code:
//iMessage contains the technical details of my image, e.g the length
iState = EMMSConnecting;
iSendingSocket.Write(iMessage,iStatus);
SetActive();

//after asynchronous request
void CCampusBluetoothClient::RunL()
{
if (iStatus.Int() == KErrNone)
{
switch (iState)
{
case EConnecting:
{
iMessage.Zero();
SendMainMessage();
break;
}
case EMessageSent:
{
NEikonEnvironment::MessageBox(_L("Part 2 sent"));
ReceiveNotification();
break;
}
case EMMSConnecting:
{
if(IsActive())
{
Cancel();
}

iState = EMessageSent;
//sending the image
iSendingSocket.Write(*iField3, iStatus);
SetActive();

break;
}
default:
Panic(EInvalidClientState);
break;
}
}
else
{
Disconnect();
iObserver.HandleErrorL(iStatus.Int());
}
}

the problem here is after sending the technical details, I tried to send the image using the same socket. However, it appears the image is not send in full. The server which is the laptop keeps requesting for more data.
However, if I were to send the image directly, the problem does not appear. Is it because I cannot send both the technical details and image on the same socket one after another without closing it first.
Pls help!!!!I am really at my wits end

Thanks
ckt