Binairy data gprs

Is there any example to send and receive binairy data trougt the TCP/IP gprs connection? I use the function
ed_SendDataExt((u8 *)msg,i,FALSE,ED_ID_TCPSOCKET_1); for normal ASCII and works OK receiving s still a problem (I use the Q2501)