How i receive a big binary file (mp3 files with 3 or 4 mb) using winsock?

I use getdata, and, at the DataArrival event, i write the data receiver in a file in disk. but at the finish.. the file dont work ( corrupt? )

how the right mode to receive a big binary file (peekdata or getdata)?
how the right mode to write this file in disk?

thx for all.

[]s Claudio Castro