file transfer

I want to read files with different extensions like .pdf and .xls and store the data into a buffer then send it through the network and at the recieving end I want to save the file with the same extensions. Can anybody let me know how I can implement it using VB.

Briefly I want to transfer the files of different types.

monalisaAsked:
Who is Participating?
 
MikeP090797Commented:
You can use the Winsock control to transfer files. First, send a header that specifies the file name and size. Then read the file, and send it in peices. the receiving side will save it using the name you specified
0
 
ChizlCommented:
Hey Mike you would have a piece of example code to support that would you?   I have tried that, which I know it can be done, but have had many problems.  The file would get corrupted to the point of unusable.
0
 
MikeP090797Commented:
I don't have any code for that, but post your code here, and i'll try to see what's wrong with it.
0
 
monalisaAuthor Commented:
Same is the problem with me too.   I want to know how can I get  
the entire file to be transferred. I have no problem while transferring the data.

Can you help me out with some code.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.