Click here to Skip to main content
15,917,062 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please where can I get a routing for transmiting files from client to server in my client/server application?
I am writing a client/server windows program using winsock. I need to trasmit files from client to server. Initially I wanted to use transmitFile function , but discovered that there is no corresponding receiveFile function. Someone suggested that I use ftp. So I wish to know where I can get a smple code fortransmitting files from client to server and vice versa, and perhaps in addition a where I can get a custom ReceiveFile function that can work with transmit file function.
Posted

How about FTP Client Class?

On the server, just enable and setup FTP. It's a standard service in Unix and Linux.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 8-Jun-12 15:56pm    
A valid suggestion, a 5.
--SA
In you client/server application? ...that sort of implies you already have an application that can transmit data from point A to point B, in which case, sending files is just like sending any other type of data. If you have a socket established, all you have to do is load up your file (probably in chunks) and transmit it across the socket.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900