Click here to Skip to main content
15,885,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i would like to know how to send files such as image or video from server to client in c# window forms.
Posted
Comments
ali_heidari_ 16-Feb-13 8:34am    
simple way is send the adress of video as string stream to client and client download it with some high level classes in System.Net as Weblient which is include DownloadFile method !
ali_heidari_ 16-Feb-13 9:10am    
instead of send file itself, send its url to client then with this download it :
DownloadFile(url,SaveAdresInLocal);
Member 9839800 16-Feb-13 9:13am    
thanks i will try it

Have a look at following articles:
File Transfer Program using C#.Net Windows Application[^]
A Client Server File Sharing Application [^]

Try out, post specific issue if you face any.
 
Share this answer
 
Comments
Sandeep Mewara 16-Feb-13 8:32am    
Welcome.
Monjurul Habib 17-Feb-13 6:22am    
5+
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Feb-13 11:37am    
You are welcome.
Will you accept the answer (formally, green button)?
—SA

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