Click here to Skip to main content
11,429,382 members (68,174 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
hi i would like to know how to send files such as image or video from server to client in c# window forms.
Posted 16-Feb-13 3:04am
Comments
source.compiler at 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 !
source.compiler at 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 at 16-Feb-13 9:13am
   
thanks i will try it
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Sandeep Mewara at 16-Feb-13 8:32am
   
Welcome.
Monjurul Habib at 17-Feb-13 6:22am
   
5+
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
Sergey Alexandrovich Kryukov at 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)



Advertise | Privacy | Mobile
Web02 | 2.8.150428.2 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100