Click here to Skip to main content
12,247,802 members (59,716 online)
Rate this:
 
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 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 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
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 16-Feb-13 8:32am
   
Welcome.
Monjurul Habib 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2016
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