>how to use winsock to send and get .bmp images, memo field and general field ?
The answer all depends on what you are talking to through WinSock. .BMP's, Memo field, and general fields are all really just 8-bit data, which should probably be encoded to use only 7-bit's then decoded on the other end, but otherwise it's just like sending text.
Here are a couple examples of using winsock as client and server, some using WinSock directly, some using a microsoft OCX in the middle:
http://fox.wikis.com/wc.dll?Wiki~WinSockOCX_Sample~VFPhttp://fox.wikis.com/wc.dll?Wiki~SendSmtpEmail~VFP