how can i send an entire array through winsock and receive it on the other end, not knowing how big the array is on the other end??

is there a way like:
dim myArray(1 to 5) as String

winsock1.sendData myArray(1 to 5)

is that allowed?