I am very new to using the winsock control. What I
want to know is if there is a way to send whole files
using the control and if so, how do you do this?
Printable View
I am very new to using the winsock control. What I
want to know is if there is a way to send whole files
using the control and if so, how do you do this?
if you can send strings (bits and bytes)
there's no reason why you can't send files.
firstly, make sure you use the TCP protocol because
it's much "safer" for files than UDP.
i think there's an article in this vb-world about it,
so you can copy-paste already written code.
the idea is to read the file,
send the data by blocks (or byte by byte if you insist),
and construct it again on the other side.
itay.